Skip to content

Commit dc43fa5

Browse files
committed
EulerDiscrete run ruff for PR huggingface#6024
1 parent 6d78118 commit dc43fa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/schedulers/scheduling_euler_discrete.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def __init__(
213213
if rescale_betas_zero_snr:
214214
# Close to 0 without being 0 so first sigma is not inf
215215
# FP16 smallest positive subnormal works well here
216-
self.alphas_cumprod[-1] = 2 ** -24
216+
self.alphas_cumprod[-1] = 2**-24
217217

218218
sigmas = np.array(((1 - self.alphas_cumprod) / self.alphas_cumprod) ** 0.5)
219219
timesteps = np.linspace(0, num_train_timesteps - 1, num_train_timesteps, dtype=float)[::-1].copy()

0 commit comments

Comments
 (0)