-
Notifications
You must be signed in to change notification settings - Fork 506
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
DreamBooth: Using both "--train-text-encoder" and "--prior-preservation" results in RuntimeError #228
Comments
I am also facing this issue. When fine-tuning SDXL 1.0, I have no errors without --prior-preservation and --train-text-encoder. When I try to train with them both enabled I face the same matrix multiply issue, same dimensions:
It originates from trainers/dreambooth/trainer.py
My hyperparameters:
My autotrain script:
|
As I suspected above, there appears to be a typo in the implementation of _get_model_pred. I referenced the Diffuser's library example for fine-tune SDXL Lora, and they have code similar to _get_model_red, but the repeat condition is different in one place. I created a fork and modified it in one place and did my training run again, now getting passed that error! main...marcd123:autotrain-advanced:main @Xargonus you can try my fork by pip uninstalling autotrain and then installing my fork: |
PR: #245 |
Shows as merged YET the issue remains as it bit me yesterday. |
will create a release in sometime today! |
available from 0.6.36+ |
When will that be available as only .35 is right now? |
sorry, 35 works! |
Thank you. |
Both of the following commands work:
Not training the text encoder:
Not using prior preservation:
If I want to use both
--train-text-encoder
andprior-preservation
, like this:I get the following RuntimeError in the first step of training:
The text was updated successfully, but these errors were encountered: