Skip to content

Commit

Permalink
EulerDiscrete run ruff for PR huggingface#6024
Browse files Browse the repository at this point in the history
  • Loading branch information
Beinsezii committed Dec 2, 2023
1 parent 6d78118 commit dc43fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/schedulers/scheduling_euler_discrete.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def __init__(
if rescale_betas_zero_snr:
# Close to 0 without being 0 so first sigma is not inf
# FP16 smallest positive subnormal works well here
self.alphas_cumprod[-1] = 2 ** -24
self.alphas_cumprod[-1] = 2**-24

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

0 comments on commit dc43fa5

Please sign in to comment.