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

Enable using both --train-text-encoder and --use-prior-preservation #245

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

marcd123
Copy link
Contributor

There is a bug caused by a typo that is described in this Github issue, which causes a matrix multiply error when using both train text encoder and prior preservation.

#228

I've forked and corrected the typo and the training process is working again with both options enabled.

@marcd123
Copy link
Contributor Author

To add more context, I reference this example from the Diffusers library to make this change. The implementation in the Diffusers library looks identical to the implementation of _get_model_pred in autotrain, except for using bsz instead of elems_to_repeat on one line.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 28, 2023

The documentation is not available anymore as the PR was closed or merged.

@abhishekkrthakur abhishekkrthakur merged commit 89ac6b7 into huggingface:main Sep 28, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants