NJU-PCALab / AddSR

71 stars 2 forks source link

ImportError: cannot import name 'FromOriginalControlnetMixin' from 'diffusers.loaders' #14

Closed meng-yuan321 closed 2 days ago

meng-yuan321 commented 2 weeks ago

I download the diffusers source code from https://github.com/huggingface/diffusers/tree/main/src/diffusers, and replace the original 'scheduling_ddpm.py' file with [this](https://github.com/NJU-PCALab/AddSR/blob/main/utils/scheduling_ddpm.py, but there are other errors: image

CSRuiXie commented 2 weeks ago

The error may be caused by using the wrong version of diffusers. The version of diffusers should be 0.21.0