All deterministic (non-ancestral) samplers eventually converge against the same image as the number of steps approaches infinity. However, the speed of this convergence is not necessarily the same. This analysis is concerned with determining differences in convergence speed between the deterministic samplers.
The prompt is "Flowers, red".
The x axis for the fit is the effective number of steps, normalized to the GPU time necessary to generate images
(on an NVIDIA GTX 1070).
The model
The x values at which data is collected are spaced logarithmically: 10, 14, 20, 28, 40, 56, 80, 112, 160, 226. Because the Heun and DPM 2 samplers approximately require twice as much GPU time as the other samplers the number of steps for those samplers was cut in half. For Euler, Heun, DPM 2 and PLMS the seeds 0-89 were used to generate data. For DDIM and PLMS the seeds 0-59 were used to generate data.
Sampler |
|
Effective Step Length | |||
---|---|---|---|---|---|
Euler | 1.547 | 0.135 | 1.0 | ||
Heun | 1.746 | 0.083 | 2.025 | ||
DPM 2 | 0.935 | 0.486 | 1.95 | ||
LMS | 1.459 | 0.166 | 0.9875 | ||
DDIM | 5.538 | 0.975 | |||
PLMS | 7.086 | 0.975 |
In the interval of 10 to 50 effective steps LMS is the fastest k-diffusion sampler.
Asymptotically DPM 2 seems to be faster but due to the diminishing returns at large numbers of steps this will
not be noticeable to humans.
The fit results for Euler, Heun, DPM 2, and LMS are good in terms of
For practical purposes LMS seems to be the fastest. Heun and DPM 2 are a close second. Euler is significantly slower. DDIM and PLMS cannot be compared because the fit results are bad.