You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
Always thank you for your great codes that you provide!
Anyway, there are 2 points that I can't understand.
Why do you use posterior mean and variance on reverse step? ( in p_sample function )
I expected using the equation (11) of original DDPM paper, but I think it is not on this code.
Can you explain this for me ? :)
1: Step 4 from Algorithm, but using equivalence from formula 9,7.
Equation 9 right side of mean_tilde_t( ... , HERE) and replacing mean_tilde_t with 7
I tested equation 11 and came across stability issues. I think that small numbers cause some floating point errors.
This also enables the clamping of the image.
2: There is a commentary somewhere "# below: log calculation clipped because the posterior variance is 0 at the beginning of the diffusion chain". I can't remember if this comment is from this repository. This is probably again a numerical fix.
Note: sqrt(posterior_variance) == exp(0.5*log(posterior_variance))
posterior_variance stores the square of σ
Hi!
Always thank you for your great codes that you provide!
Anyway, there are 2 points that I can't understand.
p_sample
function )I expected using the equation (11) of original DDPM paper, but I think it is not on this code.
Can you explain this for me ? :)
(0.5 * model_log_variance).exp()
on `pred_img = model_mean + (0.5 * model_log_variance).exp() * noise in p_sample_loop?The full code is as below:
The text was updated successfully, but these errors were encountered: