From 7a5852a4eea6d6ed747bded3238418abf3812ea4 Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 14 Sep 2022 00:14:40 +1000 Subject: [PATCH] change np.float to np.float32 * numpy deprecation warning fix. Alternately, you could also specify float --- modules/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/processing.py b/modules/processing.py index c0b89244..f33560ee 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -437,7 +437,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing): else: self.image_mask = images.resize_image(self.resize_mode, self.image_mask, self.width, self.height) np_mask = np.array(self.image_mask) - np_mask = np.clip((np_mask.astype(np.float)) * 2, 0, 255).astype(np.uint8) + np_mask = np.clip((np_mask.astype(np.float32)) * 2, 0, 255).astype(np.uint8) self.mask_for_overlay = Image.fromarray(np_mask) self.overlay_images = []