You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
dreambooth lora: text encoder monkey-patching not working #3445
In the dreambooth lora script, the lora layers are monkey patched into the text encoder as the text encoder comes from transformers. However, this has some undesirable results:
This is before any weight is updated. Vertically, the images share the same exact seed.
Commenting out the lora term produces the same distortions. This means that wrapping the original ref to the forward function and injecting it via monkey patching produces extra undesirable results.
My current guess is that this is some pass-by-ref issue.
Reproduction
train_text_encoder: True and check images at epoch=0 before training.
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.
Activity
rvorias commentedon May 16, 2023
This seems to alleviate the ref issue
So finally:
patrickvonplaten commentedon May 16, 2023
cc @sayakpaul here
Mr-Philo commentedon May 17, 2023
Same problems here! Adding
--train_text_encoderwill lead to broken text encoder: the generated images won't follow the input text:When training after 2500steps, the model will fit the training images but still ignores the input prompt, llike here "the sunflowers":
When disable
--train_text_encoder, everything goes smoothly.Experiment Setting
sayakpaul commentedon May 17, 2023
Being worked in #3437. Thanks for your patience.
github-actions commentedon Jun 15, 2023
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.
patrickvonplaten commentedon Jun 16, 2023
Think we can close this as it's solved, please leave a message if it's not solved for you