NJU-PCALab / AddSR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

meng-yuan321 opened this issue · comments

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

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