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

[scheduler] fix a bug in add_noise #7386

Merged
merged 6 commits into from
Mar 19, 2024
Merged

[scheduler] fix a bug in add_noise #7386

merged 6 commits into from
Mar 19, 2024

Conversation

yiyixuxu
Copy link
Collaborator

fix #7348

currently, the add_noise method in schedulers does not consider the use case when it is called for inpainting pipeline to add noise to the unmasked areas after each step, e.g.

init_latents_proper = self.scheduler.add_noise(

this PR fix this and also removed the begin_index implementation from the legacy inpainting pipeline that does not use add_noise with next timestep

fix

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
fix

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@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.

sayakpaul and others added 3 commits March 19, 2024 14:15
fix
@yiyixuxu yiyixuxu merged commit 63b6846 into main Mar 19, 2024
17 checks passed
@yiyixuxu yiyixuxu deleted the scheduler-fix branch March 19, 2024 10:51
sayakpaul added a commit that referenced this pull request Mar 20, 2024
* fix

* fix

* add a tests

* fix

---------

Co-authored-by: Sayak Paul <spsayakpaul@gmail.com>
Co-authored-by: yiyixuxu <yixu310@gmail,com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants