Skip to content

Include CLIPTextModel parameters in conversion #695

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

Merged
merged 1 commit into from
Oct 5, 2022

Conversation

kanewallmann
Copy link
Contributor

A stable diffusion checkpoint might have a CLIPTextModel with trained weights (this is how textual inversion works).

This change copies over the weights from the given checkpoint instead of using the default "openai/clip-vit-large-patch14" weights so that a model trained with textual inversion can be converted for use with diffusers library too.

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Oct 2, 2022

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

@patrickvonplaten
Copy link
Contributor

This looks good for me! @kanewallmann could you run make style ? :-)

@kanewallmann
Copy link
Contributor Author

Done @patrickvonplaten

@patrickvonplaten patrickvonplaten merged commit b9eea06 into huggingface:main Oct 5, 2022
prathikr pushed a commit to prathikr/diffusers that referenced this pull request Oct 26, 2022
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