Skip to content

Conversation

vmobilis
Copy link
Contributor

@vmobilis vmobilis commented Apr 30, 2025

DPMPP2S_A:

if (sigma_down == 0) {

Current formula:

if (sigma_down == 0) {
    d = (x - denoised) / sigmas[i];
    dt = sigma_down - sigmas[i];
    x += d * dt;
}

Since sigma_down == 0
=> dt == -sigmas[i]
=> d * dt == (x - denoised) / sigmas[i] * (-sigmas[i]) == denoised - x
=> x = x + denoised - x
=> x = denoised


Proof:
BeforeAfter

Images are almost same.
And thank you for the program.

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.

1 participant