-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Custom Diffusion : run train_custom_diffusion.py fails #4704
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
Comments
I tried using But then I starterd getting the following error:
|
Do you have a Colab Notebook for us to look into? Ccing @DN6 |
Hey @sayakpaul, I managed to make it work. After adding the
The line (1312) is referring inside the conditional block Here's how line 1232
line 1290
This error leads to a "UnboundLocalError" when the code tries to access Basically the first training script from the documentation on it own leads to a To fix the issue, the following arguments can be added to the training script:
So the final configuration is as follows:
Hope this helps |
Wonderful! Actually, safe serialization is currently not possible with Custom Diffusion training (Cc: @DN6). Thanks for mentioning your changes to make it work. Would you like to open a PR? I think that will be very helpful. |
sent the PR |
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. |
Describe the bug
Hey guys
I've been doing the tutorials on Hugging Face, love the content! I encountered an error during training while following this documentation on CustomDiffusion. I am using the provided cat dataset, and everything works fine until the training but once the training steps are done I getting the following error message:
I'm doing everything exactly as it is in the tutorial, but cant figure out why this is happening. I checked the following issues: (#3284,#4235,#3221),
In this case how can I avoid using safetensors, or how can I handle empty weight layers?
Reproduction
Logs
System Info
diffusers
version: 0.21.0.dev0Who can help?
@sayakpaul @patrickvonplaten
The text was updated successfully, but these errors were encountered: