Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Stable Diffusion Example #436

Merged
merged 10 commits into from
Dec 20, 2024
Merged

Add Stable Diffusion Example #436

merged 10 commits into from
Dec 20, 2024

Conversation

R-Tars
Copy link
Contributor

@R-Tars R-Tars commented Dec 19, 2024

No description provided.

Copy link
Member

@zhanghb97 zhanghb97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Please add .gitignore for examples/BuddyStableDiffusion
  2. Please resolve the error:
[12/12] Linking CXX executable bin/buddy-stable-diffusion-run
FAILED: bin/buddy-stable-diffusion-run 
: && /usr/bin/c++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wimplicit-fallthrough -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  examples/BuddyStableDiffusion/CMakeFiles/buddy-stable-diffusion-run.dir/buddy-stable-diffusion-main.cpp.o -o bin/buddy-stable-diffusion-run -L/home/zhanghongbin/buddy-mlir/llvm/build/./lib -Wl,-rpath,/home/zhanghongbin/buddy-mlir/llvm/build/./lib:/home/zhanghongbin/buddy-mlir/llvm/build/lib  lib/libTEXTENCODER.a  lib/libUNET.a  lib/libVAE.a  ../llvm/build/lib/libmlir_c_runner_utils.so.18git  -lomp  ../llvm/build/lib/libMLIRSparseTensorRuntime.a  ../llvm/build/lib/libmlir_float16_utils.so.18git  ../llvm/build/lib/libLLVMSupport.a  -lrt  -ldl  -lm  /usr/lib/x86_64-linux-gnu/libz.so  /usr/lib/x86_64-linux-gnu/libtinfo.so  ../llvm/build/lib/libLLVMDemangle.a && :
/usr/bin/ld: examples/BuddyStableDiffusion/CMakeFiles/buddy-stable-diffusion-run.dir/buddy-stable-diffusion-main.cpp.o: in function `dip::JpegDecoder<float, 4ul>::~JpegDecoder()':
buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EED2Ev[_ZN3dip11JpegDecoderIfLm4EED5Ev]+0x2b): undefined reference to `jpeg_destroy_decompress'
/usr/bin/ld: examples/BuddyStableDiffusion/CMakeFiles/buddy-stable-diffusion-run.dir/buddy-stable-diffusion-main.cpp.o: in function `dip::PngDecoder<float, 4ul>::~PngDecoder()':
buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EED2Ev[_ZN3dip10PngDecoderIfLm4EED5Ev]+0x7a): undefined reference to `png_destroy_read_struct'
/usr/bin/ld: examples/BuddyStableDiffusion/CMakeFiles/buddy-stable-diffusion-run.dir/buddy-stable-diffusion-main.cpp.o: in function `dip::JpegDecoder<float, 4ul>::~JpegDecoder()':
buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EED0Ev[_ZN3dip11JpegDecoderIfLm4EED5Ev]+0x2c): undefined reference to `jpeg_destroy_decompress'
/usr/bin/ld: examples/BuddyStableDiffusion/CMakeFiles/buddy-stable-diffusion-run.dir/buddy-stable-diffusion-main.cpp.o: in function `dip::PngDecoder<float, 4ul>::~PngDecoder()':
buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EED0Ev[_ZN3dip10PngDecoderIfLm4EED5Ev]+0x7a): undefined reference to `png_destroy_read_struct'
/usr/bin/ld: examples/BuddyStableDiffusion/CMakeFiles/buddy-stable-diffusion-run.dir/buddy-stable-diffusion-main.cpp.o: in function `dip::JpegDecoder<float, 4ul>::readData(Img<float, 4ul>&)':
buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip11JpegDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0xa1): undefined reference to `jpeg_destroy_decompress'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip11JpegDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x149): undefined reference to `jpeg_start_decompress'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip11JpegDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x1dc): undefined reference to `jpeg_read_scanlines'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip11JpegDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x2d9): undefined reference to `jpeg_finish_decompress'
/usr/bin/ld: examples/BuddyStableDiffusion/CMakeFiles/buddy-stable-diffusion-run.dir/buddy-stable-diffusion-main.cpp.o: in function `dip::JpegDecoder<float, 4ul>::readHeader()':
buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE10readHeaderEv[_ZN3dip11JpegDecoderIfLm4EE10readHeaderEv]+0x26): undefined reference to `jpeg_destroy_decompress'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE10readHeaderEv[_ZN3dip11JpegDecoderIfLm4EE10readHeaderEv]+0x96): undefined reference to `jpeg_std_error'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE10readHeaderEv[_ZN3dip11JpegDecoderIfLm4EE10readHeaderEv]+0xf0): undefined reference to `jpeg_CreateDecompress'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE10readHeaderEv[_ZN3dip11JpegDecoderIfLm4EE10readHeaderEv]+0x11d): undefined reference to `jpeg_stdio_src'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE10readHeaderEv[_ZN3dip11JpegDecoderIfLm4EE10readHeaderEv]+0x13e): undefined reference to `jpeg_save_markers'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE10readHeaderEv[_ZN3dip11JpegDecoderIfLm4EE10readHeaderEv]+0x14b): undefined reference to `jpeg_read_header'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE10readHeaderEv[_ZN3dip11JpegDecoderIfLm4EE10readHeaderEv]+0x16b): undefined reference to `jpeg_calc_output_dimensions'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegDecoderIfLm4EE10readHeaderEv[_ZN3dip11JpegDecoderIfLm4EE10readHeaderEv]+0x1b4): undefined reference to `jpeg_destroy_decompress'
/usr/bin/ld: examples/BuddyStableDiffusion/CMakeFiles/buddy-stable-diffusion-run.dir/buddy-stable-diffusion-main.cpp.o: in function `dip::PngDecoder<float, 4ul>::readHeader()':
buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE10readHeaderEv[_ZN3dip10PngDecoderIfLm4EE10readHeaderEv]+0x84): undefined reference to `png_destroy_read_struct'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE10readHeaderEv[_ZN3dip10PngDecoderIfLm4EE10readHeaderEv]+0xac): undefined reference to `png_create_read_struct'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE10readHeaderEv[_ZN3dip10PngDecoderIfLm4EE10readHeaderEv]+0xc1): undefined reference to `png_create_info_struct'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE10readHeaderEv[_ZN3dip10PngDecoderIfLm4EE10readHeaderEv]+0xd1): undefined reference to `png_create_info_struct'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE10readHeaderEv[_ZN3dip10PngDecoderIfLm4EE10readHeaderEv]+0x11b): undefined reference to `png_set_longjmp_fn'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE10readHeaderEv[_ZN3dip10PngDecoderIfLm4EE10readHeaderEv]+0x191): undefined reference to `png_init_io'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE10readHeaderEv[_ZN3dip10PngDecoderIfLm4EE10readHeaderEv]+0x1b7): undefined reference to `png_read_info'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE10readHeaderEv[_ZN3dip10PngDecoderIfLm4EE10readHeaderEv]+0x1e0): undefined reference to `png_get_IHDR'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE10readHeaderEv[_ZN3dip10PngDecoderIfLm4EE10readHeaderEv]+0x251): undefined reference to `png_get_tRNS'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE10readHeaderEv[_ZN3dip10PngDecoderIfLm4EE10readHeaderEv]+0x2e3): undefined reference to `png_destroy_read_struct'
/usr/bin/ld: examples/BuddyStableDiffusion/CMakeFiles/buddy-stable-diffusion-run.dir/buddy-stable-diffusion-main.cpp.o: in function `dip::PngEncoder<float, 4ul>::write(Img<float, 4ul>&, std::vector<int, std::allocator<int> > const&)':
buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x3a): undefined reference to `png_create_write_struct'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0xcf): undefined reference to `png_create_info_struct'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0xef): undefined reference to `png_set_longjmp_fn'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x110): undefined reference to `png_destroy_write_struct'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x17f): undefined reference to `png_init_io'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x19e): undefined reference to `png_set_filter'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x1ad): undefined reference to `png_set_compression_level'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x1bc): undefined reference to `png_set_compression_strategy'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x202): undefined reference to `png_set_IHDR'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x215): undefined reference to `png_write_info'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x21f): undefined reference to `png_set_bgr'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x229): undefined reference to `png_set_swap'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x635): undefined reference to `png_write_image'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip10PngEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x644): undefined reference to `png_write_end'
/usr/bin/ld: examples/BuddyStableDiffusion/CMakeFiles/buddy-stable-diffusion-run.dir/buddy-stable-diffusion-main.cpp.o: in function `dip::PngDecoder<float, 4ul>::readData(Img<float, 4ul>&)':
buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0xf0): undefined reference to `png_set_longjmp_fn'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x121): undefined reference to `png_set_swap'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x13a): undefined reference to `png_set_strip_alpha'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x180): undefined reference to `png_set_rgb_to_gray'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x18d): undefined reference to `png_set_interlace_handling'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x19a): undefined reference to `png_read_update_info'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x34f): undefined reference to `png_read_image'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x35c): undefined reference to `png_read_end'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x65d): undefined reference to `png_get_valid'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x67e): undefined reference to `png_get_eXIf_1'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x72a): undefined reference to `png_destroy_read_struct'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x797): undefined reference to `png_set_gray_to_rgb'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x7a6): undefined reference to `png_set_tRNS_to_alpha'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x7bf): undefined reference to `png_get_valid'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x7e0): undefined reference to `png_get_eXIf_1'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x7ea): undefined reference to `png_set_strip_16'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x7f9): undefined reference to `png_set_palette_to_rgb'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x839): undefined reference to `png_set_bgr'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE[_ZN3dip10PngDecoderIfLm4EE8readDataER3ImgIfLm4EE]+0x848): undefined reference to `png_set_expand_gray_1_2_4_to_8'
/usr/bin/ld: examples/BuddyStableDiffusion/CMakeFiles/buddy-stable-diffusion-run.dir/buddy-stable-diffusion-main.cpp.o: in function `dip::JpegEncoder<float, 4ul>::write(Img<float, 4ul>&, std::vector<int, std::allocator<int> > const&)':
buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0xf5): undefined reference to `jpeg_std_error'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x123): undefined reference to `jpeg_CreateCompress'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x236): undefined reference to `jpeg_set_defaults'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x258): undefined reference to `jpeg_set_quality'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x26a): undefined reference to `jpeg_start_compress'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x51a): undefined reference to `jpeg_write_scanlines'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x92e): undefined reference to `jpeg_finish_compress'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0x997): undefined reference to `jpeg_destroy_compress'
/usr/bin/ld: buddy-stable-diffusion-main.cpp:(.text._ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE[_ZN3dip11JpegEncoderIfLm4EE5writeER3ImgIfLm4EERKSt6vectorIiSaIiEE]+0xa5f): undefined reference to `jpeg_stdio_dest'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

requirements.txt Outdated
idna
diffusers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an empty line here.

@@ -0,0 +1,193 @@
# ===- import-stable-diffusion.py --------------------------------------------------------
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong format.

@@ -0,0 +1,504 @@
//===- buddy-stable-diffusion-main.cpp
//-----------------------------------------------------===//
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong format.

}

return 0;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an empty line here.

@zhanghb97
Copy link
Member

Don't forget to resolve the conflict.

Copy link
Member

@zhanghb97 zhanghb97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@zhanghb97 zhanghb97 merged commit b3e34de into buddy-compiler:main Dec 20, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants