aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorJJ <jjisnow@gmail.com>2022-09-13 14:14:40 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-13 15:21:59 +0000
commit7a5852a4eea6d6ed747bded3238418abf3812ea4 (patch)
treef887deb081ed2280d8724f3d9834ecd41d07ff58 /modules
parenteeabe62b4d6088c9beafa208bfcb831e5e9cbd92 (diff)
downloadstable-diffusion-webui-gfx803-7a5852a4eea6d6ed747bded3238418abf3812ea4.tar.gz
stable-diffusion-webui-gfx803-7a5852a4eea6d6ed747bded3238418abf3812ea4.tar.bz2
stable-diffusion-webui-gfx803-7a5852a4eea6d6ed747bded3238418abf3812ea4.zip
change np.float to np.float32
* numpy deprecation warning fix. Alternately, you could also specify float
Diffstat (limited to 'modules')
-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 = []