Skip to content

Commit 2ec802f

Browse files
Apply style fixes
1 parent 2c2d01b commit 2ec802f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/schedulers/scheduling_ddpm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ def betas_for_alpha_bar(
7272

7373
def alpha_bar_fn(t):
7474
return math.cos((t + 0.008) / 1.008 * math.pi / 2) ** 2
75-
75+
7676
elif alpha_transform_type == "laplace":
7777

7878
def alpha_bar_fn(t):
79-
lmb = - 0.5 * math.copysign(1, 0.5 - t) * math.log(1 - 2 * math.fabs(0.5 - t) + 1e-6)
79+
lmb = -0.5 * math.copysign(1, 0.5 - t) * math.log(1 - 2 * math.fabs(0.5 - t) + 1e-6)
8080
snr = math.exp(lmb)
8181
return math.sqrt(snr / (1 + snr))
8282

0 commit comments

Comments
 (0)