From 9fc2e00b405e40cc1486a5e1185b41f7e0db5615 Mon Sep 17 00:00:00 2001 From: Haoming Date: Mon, 2 Feb 2026 10:36:44 +0800 Subject: [PATCH] bruh --- modules/processing.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/processing.py b/modules/processing.py index 8159416d..b0c5f1b9 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -1368,6 +1368,7 @@ class StableDiffusionProcessingTxt2Img(StableDiffusionProcessing): samples = None decoded_samples = torch.asarray(np.expand_dims(image, 0)) + decoded_samples = torch.clamp((decoded_samples + 1.0) / 2.0, min=0.0, max=1.0) else: image = np.array(self.firstpass_image).astype(np.float32) / 255.0