Where do the extra DDPM sampling steps come from? #9431
Replies: 2 comments
-
These additional steps defines the calculation of the predicted sample during the reverse diffusion process which introducing coefficients that balance the contributions of the predicted original sample x_0 and the current noisy sample x_t. This will be improving both numerical stability and sample quality in the final output. That's true that those are not shown in the original paper but have likely been added based on practical considerations and optimization for real-world use cases |
Beta Was this translation helpful? Give feedback.
-
These formula comes from reverse diffusion process, where at each time step we sample from a Gaussian distribution (Step 4). The first term is basically predicted mean (computed using current sample and predicted noise). The implementation uses reformulation of the same. |
Beta Was this translation helpful? Give feedback.
-
I see this line matching the original paper
diffusers/src/diffusers/schedulers/scheduling_ddpm.py
Line 449 in 1e8cf27
But some extra steps are in place
diffusers/src/diffusers/schedulers/scheduling_ddpm.py
Lines 468 to 476 in 1e8cf27
Sampling Algorithm 2 does not perform this operation in the original paper

Where do these come from?
Beta Was this translation helpful? Give feedback.
All reactions