improved-diffusion icon indicating copy to clipboard operation
improved-diffusion copied to clipboard

clip_denoised value range.

Open GYDDHPY opened this issue 1 year ago • 1 comments

In sampling functions, the value is clamped. Why the value range of clamp is set to (-1,1) ? Is it related to normalized image intensity value or added noise value or something else?

https://github.com/openai/improved-diffusion/blob/783b6740edb79fdb7d063250db2c51cc9545dcd1/improved_diffusion/gaussian_diffusion.py#L293-L298

GYDDHPY avatar May 20 '23 09:05 GYDDHPY

In my opinion, when you predict the x_start in t \approx T, with a cosine noise schedule, bar alphas (cumprod alphas) have very small values compared to linear noise schedules. So, in this case, the predicted x_start has tremendous large values.

yhy258 avatar Jul 29 '24 10:07 yhy258