KEMBAR78
Fix RePaint Scheduler by hlky · Pull Request #10185 · huggingface/diffusers · GitHub
Skip to content

Conversation

@hlky
Copy link
Contributor

@hlky hlky commented Dec 11, 2024

What does this PR do?

Algorithm 1 Line 5 https://arxiv.org/pdf/2201.09865.pdf

$$x_{t-1}^{\text{known}} = \sqrt{\bar{\alpha}_t} x_0 + (1 - \bar{\alpha}_t) \epsilon$$

Current code

prev_known_part = (alpha_prod_t_prev**0.5) * original_image + ((1 - alpha_prod_t_prev) ** 0.5) * noise

Square root of (1 - alpha_prod_t_prev) is incorrect.

Fixes #9900

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.

cc @yiyixuxu

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

Copy link
Collaborator

@yiyixuxu yiyixuxu left a comment

Choose a reason for hiding this comment

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

thanks!

@yiyixuxu yiyixuxu merged commit 2f023d7 into huggingface:main Dec 16, 2024
15 checks passed
sayakpaul pushed a commit that referenced this pull request Dec 23, 2024
Fix repaint scheduler
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.

Potential bug in repaint?

3 participants