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

Only for 2.1? #1

Closed
gigadeplex opened this issue Feb 8, 2023 · 2 comments
Closed

Only for 2.1? #1

gigadeplex opened this issue Feb 8, 2023 · 2 comments

Comments

@gigadeplex
Copy link

gigadeplex commented Feb 8, 2023

Hi, is this only for SD 2.1, can this be used for 1.5? I guess, I can just switch the clip model, right?

@YuxinWenRick
Copy link
Owner

YuxinWenRick commented Feb 8, 2023

Hi, sorry for not including that important detail in the README file, but sure, you can use it for 1.5. SD 1.5 uses the text encoder of CLIP ViT-L/14 from OpenAI, so you can just simply change the argument by: args.clip_model = "ViT-L-14" and args.clip_pretrain = "openai". Also, if you are using the Jupyter notebook, you may also want to change model_id = "runwayml/stable-diffusion-v1-5" when loading the stable diffusion model.

Let me know if you have further questions!

@demirklvc
Copy link

Hi, sorry for not including that important detail in the README file, but sure, you can use it for 1.5. SD 1.5 uses the text encoder of CLIP ViT-L/14 from OpenAI, so you can just simply change the argument by: args.clip_model = "ViT-L-14" and args.clip_pretrain = "openai". Also, if you are using the Jupyter notebook, you may also want to change model_id = "runwayml/stable-diffusion-v1-5" when loading the stable diffusion model.

Let me know if you have further questions!

where? in which file?

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

No branches or pull requests

3 participants