fix inpainting

Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
Vladimir Mandic
2025-07-14 09:11:15 -04:00
parent 655c74da73
commit 79d0fb81af
7 changed files with 6 additions and 12 deletions
+3 -3
View File
@@ -85,7 +85,7 @@ class StableDiffusionProcessing:
mask_for_overlay: Any = None,
mask_blur: int = 4,
paste_to: Any = None,
inpainting_fill: int = 0,
inpainting_fill: int = 1, # obsolete
inpaint_full_res: bool = False,
inpaint_full_res_padding: int = 0,
inpainting_mask_invert: int = 0,
@@ -483,8 +483,8 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
image = image.crop(crop_region)
if image.width != self.width or image.height != self.height:
image = images.resize_image(3, image, self.width, self.height, self.resize_name)
if self.image_mask is not None and self.inpainting_fill != 1:
image = masking.fill(image, latent_mask)
# if self.image_mask is not None and self.inpainting_fill != 1:
# image = masking.fill(image, latent_mask)
if add_color_corrections:
self.color_corrections.append(processing_helpers.setup_color_correction(image))
processed_images.append(image)