From dc43fa54edec5e3ff9792f6b11221e8eb2fb0ffe Mon Sep 17 00:00:00 2001 From: Beinsezii Date: Fri, 1 Dec 2023 16:55:39 -0800 Subject: [PATCH] EulerDiscrete run `ruff` for PR #6024 --- src/diffusers/schedulers/scheduling_euler_discrete.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/schedulers/scheduling_euler_discrete.py b/src/diffusers/schedulers/scheduling_euler_discrete.py index 10ade44555171..4b5917c41d2cd 100644 --- a/src/diffusers/schedulers/scheduling_euler_discrete.py +++ b/src/diffusers/schedulers/scheduling_euler_discrete.py @@ -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()