Skip to content

Clipping values between -1 to 1 in the DDPM/DDIM scheduler. #492

Discussion options

You must be logged in to vote

I agree that the clipping value should be an argument. So far I haven't found a sound explanation as to why the prediction must be clipped (this comes from the SD implementation). It seems to make things more stable (especially for direct sample prediction). In latent diffusion models, it does not make sense to clip between -1 and 1 because the range of the latents should be ~ Gaussian (which are way below -1 and over 1). I have trained without clipping and still managed to get good results, which makes me think that, for noise prediction, clipping between -1 and 1 should not make it very different from clipping between 0 and 1. Nonetheless, I will allow for min and max clipping value spe…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Ahmad-Omar-Ahsan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants