Skip to content

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

@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.

@yiyixuxu yiyixuxu merged commit 63b6846 into main Mar 19, 2024
@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 <[email protected]>
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

Development

Successfully merging this pull request may close these issues.

EulerAncestralDiscreteScheduler is generating weird results when used with StableDiffusionControlNetInpaintPipeline

4 participants