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' #214

Open
wzgrx opened this issue Sep 20, 2024 · 3 comments
Open

ModuleNotFoundError: No module named 'diffusers' #214

wzgrx opened this issue Sep 20, 2024 · 3 comments

Comments

@wzgrx
Copy link

wzgrx commented Sep 20, 2024

Traceback (most recent call last):
File "/content/kohya-trainer/train_network_xl_wrapper.py", line 2, in
from sdxl_train_network import setup_parser, SdxlNetworkTrainer
File "/content/kohya-trainer/sdxl_train_network.py", line 3, in
from library import sdxl_model_util, sdxl_train_util, train_util
File "/content/kohya-trainer/library/sdxl_model_util.py", line 7, in
from diffusers import AutoencoderKL, EulerDiscreteScheduler, UNet2DConditionModel

ModuleNotFoundError: No module named 'diffusers'

@uYouUs
Copy link
Contributor

uYouUs commented Sep 21, 2024

This problem should be fixed. However if you made a copy of the colab, it does not auto update. Go to the colab from here and not a copy one and try again.

@wzgrx
Copy link
Author

wzgrx commented Sep 21, 2024

This problem should be fixed. However if you made a copy of the colab, it does not auto update. Go to the colab from here and not a copy one and try again.

It's obvious that it's the latest official code, I haven't changed anything, and BS is 1, the lowest, obviously there's a problem with the code

@AlMavok
Copy link

AlMavok commented Oct 16, 2024

Have you tried to add a code field and install diffusers separatly before starting training?
Just like that "!pip install diffusers==0.18.2".
scr082

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