change np.float to np.float32
* numpy deprecation warning fix. Alternately, you could also specify float
This commit is contained in:
parent
eeabe62b4d
commit
7a5852a4ee
1 changed files with 1 additions and 1 deletions
|
@ -437,7 +437,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
|
||||||
else:
|
else:
|
||||||
self.image_mask = images.resize_image(self.resize_mode, self.image_mask, self.width, self.height)
|
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.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.mask_for_overlay = Image.fromarray(np_mask)
|
||||||
|
|
||||||
self.overlay_images = []
|
self.overlay_images = []
|
||||||
|
|
Loading…
Reference in a new issue