Skip to content

Correct SNR weighted loss in v-prediction case by only adding 1 to SNR on the denominator #6307

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 4 commits into from
Jan 27, 2024

Conversation

thuliu-yt16
Copy link
Contributor

@thuliu-yt16 thuliu-yt16 commented Dec 24, 2023

What does this PR do?

Fixes #5654 (issue)

Before submitting

Who can review?

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.

@bghira

@HuggingFaceDocBuilderDev

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.

@bghira
Copy link
Contributor

bghira commented Dec 24, 2023

should also be able to fix sample prediction_type (x-pred)

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR.

https://github.com/huggingface/diffusers/pull/6307/files#r1436118465 is my primary question.

@thuliu-yt16
Copy link
Contributor Author

done

Copy link
Contributor

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot added the stale Issues that haven't received updates label Jan 26, 2024
@sayakpaul
Copy link
Member

Will merge after the CI is green.

@sayakpaul sayakpaul removed the stale Issues that haven't received updates label Jan 27, 2024
@sayakpaul sayakpaul merged commit c101066 into huggingface:main Jan 27, 2024
@siegelaaron94
Copy link

@sayakpaul
Copy link
Member

@siegelaaron94 would you like to create a PR?

AmericanPresidentJimmyCarter pushed a commit to AmericanPresidentJimmyCarter/diffusers that referenced this pull request Apr 26, 2024
…R on the denominator (huggingface#6307)

* fix minsnr implementation for v-prediction case

* format code

* always compute snr when snr_gamma is specified

---------

Co-authored-by: Sayak Paul <[email protected]>
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.

Min-SNR weight for v-prediction in examples
5 participants