-
Notifications
You must be signed in to change notification settings - Fork 51
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
Switch to SD v1.5 #12
Comments
This is documented in the README already: You can see that paint-with-words-sd/paint_with_words/paint_with_words.py Lines 89 to 93 in 4c95a11
paint-with-words-sd/paint_with_words/paint_with_words.py Lines 213 to 238 in 4c95a11
So it looks like it may be even easier than the README suggests, and you should just be able to pass Something like this would presumably work: img = paint_with_words(
color_context=color_context,
color_map_image=color_map_image,
input_prompt=input_prompt,
num_inference_steps=30,
guidance_scale=7.5,
device="cuda:0",
+ hf_model_path="runwayml/stable-diffusion-v1-5"
) |
You can confirm the above We can also explicitly set the Original version using SD v1.4New version using SD v1.5 |
One advantage of this method that you can also change the scheduler, which might be desirable for performance or quality issues. (I found recently that the model I'm using often has blatant graphical issues even with a large step count on LMS, but EulerAncestralDiscreteScheduler or EulerDiscreteScheduler do much better. Just don't forget to import your scheduler of choice from diffusers. (Something the example currently doesn't show.) |
Nice note @hiss-remi , ill add this feature as well. |
Is it possible to use this in v1.5 instead of v1.4?
The text was updated successfully, but these errors were encountered: