From 11b0ff6f8c9b79f804b9109bb2c5c2deddc3d11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Deltheil?= Date: Tue, 12 Dec 2023 17:22:09 +0100 Subject: [PATCH] ddim: remove unused attribute --- src/refiners/foundationals/latent_diffusion/schedulers/ddim.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/refiners/foundationals/latent_diffusion/schedulers/ddim.py b/src/refiners/foundationals/latent_diffusion/schedulers/ddim.py index 200640d..18067bd 100644 --- a/src/refiners/foundationals/latent_diffusion/schedulers/ddim.py +++ b/src/refiners/foundationals/latent_diffusion/schedulers/ddim.py @@ -54,6 +54,4 @@ class DDIM(Scheduler): predicted_x = (x - sqrt(1 - current_scale_factor**2) * noise) / current_scale_factor denoised_x = previous_scale_factor * predicted_x + sqrt(1 - previous_scale_factor**2) * noise - self.previous_scale_factor = previous_scale_factor - return denoised_x