We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4b26f0 commit d4c1900Copy full SHA for d4c1900
labml_nn/diffusion/stable_diffusion/sampler/ddpm.py
@@ -68,7 +68,7 @@ def __init__(self, model: LatentDiffusion):
68
# $\sqrt{\bar\alpha}$
69
self.sqrt_alpha_bar = alpha_bar ** .5
70
# $\sqrt{1 - \bar\alpha}$
71
- self.sqrt_1m_alpha_bar = alpha_bar ** .5
+ self.sqrt_1m_alpha_bar = (1. - alpha_bar) ** .5
72
# $\frac{1}{\sqrt{\bar\alpha_t}}$
73
self.sqrt_recip_alpha_bar = alpha_bar ** -.5
74
# $\sqrt{\frac{1}{\bar\alpha_t} - 1}$
0 commit comments