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

ModuleNotFoundError: No module named 'diffusers.models.autoencoder_kl' #148

Open
chenhongwu127 opened this issue Jul 23, 2024 · 3 comments

Comments

@chenhongwu127
Copy link

大佬们,这个问题咋解决呢?

@chenhongwu127
Copy link
Author

用conda装的环境

@WangHao-nlp
Copy link

diffusers.models.autoencoder_kl改成diffusers就行

@eoffermann
Copy link

This is an unfortunate side effect of the requirements.txt not specifying the version of diffusers to install.

The easiest solution to this (that doesn't involve fixing the code to use the later version of diffusers) is to:
pip install diffusers==0.6.0

The alternative is to modify the code itself to point to where autoencoder_kl lives now (diffusers.models.autoencoders.autoencoder_kl)

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

No branches or pull requests

3 participants