HL-hanlin / Ctrl-Adapter

Official implementation of Ctrl-Adapter: An Efficient and Versatile Framework for Adapting Diverse Controls to Any Diffusion Model
https://ctrl-adapter.github.io/
Apache License 2.0
339 stars 14 forks source link

Mismatch of diffusers version #19

Open Tonychen050400 opened 3 weeks ago

Tonychen050400 commented 3 weeks ago

Hi, I follow the exact steps to settup the environment and downloading the requirements for inference, however, when I want to do the inference test with this line of comment "sh inference_scripts/sdxl/sdxl_inference_depth.sh", it results image And when I type the "pip show diffusers", it results image I am confused on what makes this bug occur.

HL-hanlin commented 3 weeks ago

Hi Tony,

Thanks for your interest in our work! I just quickly checked this issue, and noticed that it might be caused by a change in diffusers library in the latest version:

diffusers v0.28.0: from ..loaders.single_file_model import FromOriginalModelMixin diffusers v0.27.0: from ..loaders import FromOriginalControlNetMixin

You can either downgrade diffusers library version, or replace the imported file from FromOriginalControlNetMixin to FromOriginalModelMixin (probably need to replace several files to make it work).

Hope this helps, and let me know if you still have issues on this!

Tonychen050400 commented 3 weeks ago

Thank you so much! Appreciate your help!