aboutsummaryrefslogtreecommitdiffstats
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-13 16:24:03 +0000
committerAUTOMATIC <16777216c@gmail.com>2022-09-13 16:24:03 +0000
commit70e72db7bd0e8d2df4613785d7f68f6ae9fa82f0 (patch)
tree35aa69a211341c0680f4c88b76a7140a825498b6 /modules/processing.py
parentb6b9faa779ca4239ef3c06abddd92d4520effd0e (diff)
parent7a5852a4eea6d6ed747bded3238418abf3812ea4 (diff)
downloadstable-diffusion-webui-gfx803-70e72db7bd0e8d2df4613785d7f68f6ae9fa82f0.tar.gz
stable-diffusion-webui-gfx803-70e72db7bd0e8d2df4613785d7f68f6ae9fa82f0.tar.bz2
stable-diffusion-webui-gfx803-70e72db7bd0e8d2df4613785d7f68f6ae9fa82f0.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py2
1 files changed, 1 insertions, 1 deletions
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 = []