control add inpaint

This commit is contained in:
Vladimir Mandic
2024-01-01 17:35:20 -05:00
parent 4107baddaf
commit 6195ce170b
15 changed files with 265 additions and 108 deletions
-1
View File
@@ -1310,7 +1310,6 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
crop_region = modules.masking.get_crop_region(np.array(mask), self.inpaint_full_res_padding)
crop_region = modules.masking.expand_crop_region(crop_region, self.width, self.height, mask.width, mask.height)
x1, y1, x2, y2 = crop_region
mask = mask.crop(crop_region)
image_mask = images.resize_image(2, mask, self.width, self.height)
self.paste_to = (x1, y1, x2-x1, y2-y1)