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

Stable Diffusion Turbo Support #1395

Merged
merged 3 commits into from
Dec 3, 2023
Merged

Conversation

edwin0cheng
Copy link
Contributor

@edwin0cheng edwin0cheng commented Dec 2, 2023

This PR added following features in the stable-diffusion example:

  • --sd-version turbo
  • --guidance-scale for controlling guidance scale, which SD Turbo need to set it to 0 for the correct result.

you can try this by:

 cargo run --release --example stable-diffusion --features "cuda,cudnn" -- --prompt "A cinematic shot of a baby racoon wearing an intricate italian priest robe." --use-f16 --sd-version turbo --n-steps 1 --width 512 --height 512 --guidance-scale 0

@edwin0cheng edwin0cheng marked this pull request as ready for review December 2, 2023 20:26
@LaurentMazare LaurentMazare merged commit 37bf1ed into huggingface:main Dec 3, 2023
@LaurentMazare
Copy link
Collaborator

Thanks for the PR, I made some small tweaks so that the default values for n_steps and guidance_scale are automatically inferred when using the turbo version so hopefully no need for the user to set these flags manually.

@edwin0cheng edwin0cheng deleted the turbo branch December 3, 2023 07:43
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.

2 participants