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 2c2d01b commit 2ec802fCopy full SHA for 2ec802f
src/diffusers/schedulers/scheduling_ddpm.py
@@ -72,11 +72,11 @@ def betas_for_alpha_bar(
72
73
def alpha_bar_fn(t):
74
return math.cos((t + 0.008) / 1.008 * math.pi / 2) ** 2
75
-
+
76
elif alpha_transform_type == "laplace":
77
78
79
- lmb = - 0.5 * math.copysign(1, 0.5 - t) * math.log(1 - 2 * math.fabs(0.5 - t) + 1e-6)
+ lmb = -0.5 * math.copysign(1, 0.5 - t) * math.log(1 - 2 * math.fabs(0.5 - t) + 1e-6)
80
snr = math.exp(lmb)
81
return math.sqrt(snr / (1 + snr))
82
0 commit comments