From 92b5243023f79c27c0dadafa508f5671c9ad2773 Mon Sep 17 00:00:00 2001 From: Ege Date: Tue, 17 Oct 2023 20:27:49 +0300 Subject: [PATCH] style and quality changes --- src/diffusers/models/unet_2d.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diffusers/models/unet_2d.py b/src/diffusers/models/unet_2d.py index e4aea20d3a33..38e26422e2a7 100644 --- a/src/diffusers/models/unet_2d.py +++ b/src/diffusers/models/unet_2d.py @@ -293,7 +293,7 @@ def forward( emb = emb + class_emb elif self.class_embedding is None and class_labels is not None: raise ValueError("class_embedding needs to be initialized in order to use class conditioning") - + # 2. pre-process skip_sample = sample sample = self.conv_in(sample)