Uh oh!
There was an error while loading. Please reload this page.
[bug] Fix float/int guidance scale not working in StableVideoDiffusionPipeline - #7143
Conversation
sayakpaul
commented
Mar 4, 2024
Nice catch. We should definitely add a test case for this as well here: https://github.com/huggingface/diffusers/blob/main/tests/pipelines/stable_video_diffusion/test_stable_video_diffusion.py. @yiyixuxu WDYT? |
HuggingFaceDocBuilderDev
commented
Mar 4, 2024
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
DN6
left a comment
There was a problem hiding this comment.
Looking good 👍🏽 I think a test to check disabling cfg would be a nice addition.
JinayJain
commented
Mar 5, 2024
@DN6 Added a test, let me know how it looks. |
sayakpaul
left a comment
There was a problem hiding this comment.
This is looking solid. Thanks!
sayakpaul
commented
Mar 6, 2024
@DN6 feel free to merge once you're good! |
JinayJain
commented
Mar 6, 2024
Side note: I was looking at the tests and see that the test config sets both height and width 32. It's probably a good idea to change those to different numbers to catch shape errors where the height/width are switched mistakenly. |
sayakpaul
commented
Mar 6, 2024
Welcome you to add them in a separate PR. |
What does this PR do?
fa3c86b caused a regression in the support for disabling CFG. Specifically,
do_classifier_free_guidancewas no longer returning a boolean value and causing the following error when using max_guidance_scale = 1.Adding this change allows the pipeline to run without error.
Before submitting
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Tagging @patrickvonplaten who wrote the original commit.
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.