|
@@ -1617,7 +1617,6 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
|
|
x1, y1, x2, y2 = crop_region
|
|
x1, y1, x2, y2 = crop_region
|
|
mask = mask.crop(crop_region)
|
|
mask = mask.crop(crop_region)
|
|
image_mask = images.resize_image(2, mask, self.width, self.height)
|
|
image_mask = images.resize_image(2, mask, self.width, self.height)
|
|
- self.inpaint_full_res = False
|
|
|
|
self.paste_to = (x1, y1, x2-x1, y2-y1)
|
|
self.paste_to = (x1, y1, x2-x1, y2-y1)
|
|
self.extra_generation_params["Inpaint area"] = "Only masked"
|
|
self.extra_generation_params["Inpaint area"] = "Only masked"
|
|
self.extra_generation_params["Masked area padding"] = self.inpaint_full_res_padding
|
|
self.extra_generation_params["Masked area padding"] = self.inpaint_full_res_padding
|
|
@@ -1625,6 +1624,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
|
|
crop_region = None
|
|
crop_region = None
|
|
image_mask = None
|
|
image_mask = None
|
|
self.mask_for_overlay = None
|
|
self.mask_for_overlay = None
|
|
|
|
+ self.inpaint_full_res = False
|
|
massage = 'Unable to perform "Inpaint Only mask" because mask is blank, switch to img2img mode.'
|
|
massage = 'Unable to perform "Inpaint Only mask" because mask is blank, switch to img2img mode.'
|
|
model_hijack.comments.append(massage)
|
|
model_hijack.comments.append(massage)
|
|
logging.info(massage)
|
|
logging.info(massage)
|