-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
train_text_to_image_sdxl.py ema not working #5783
Comments
I felt the same issue here. |
Can you please add a reproducible code snippet? |
I guess just the sample code, but with --use_ema turned on
this will error out with "RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu!" because it's missing
|
hi @Jack000: |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
So sorry for the delay here. Apologies. Could you please submit a PR fixing the issue? Looks like you have already found the bug. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
Gentle bump :-) |
Since nobody has done that for a while; I tried. |
Describe the bug
I did a few training runs with train_text_to_image_sdxl.py before realizing that the EMA checkpoint never changed.
Looking at train_text_to_image.py - it seems that there is no ema_unet.step() in the sdxl training code so the ema model is never updated.
it's also missing this bit at the start:
Reproduction
just the huggingface sample code
Logs
No response
System Info
latest version of diffusers
Who can help?
No response
The text was updated successfully, but these errors were encountered: