From b97f7d7659fd396ede71cc54b8c7f617ec71f33b Mon Sep 17 00:00:00 2001 From: w-e-w <40751091+w-e-w@users.noreply.github.com> Date: Mon, 22 Apr 2024 00:10:49 +0900 Subject: [PATCH] fix mistake in #15583 --- modules/processing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/processing.py b/modules/processing.py index 4432a82921c..b71805020c8 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -1627,7 +1627,6 @@ def init(self, all_prompts, all_seeds, all_subseeds): x1, y1, x2, y2 = crop_region mask = mask.crop(crop_region) 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.extra_generation_params["Inpaint area"] = "Only masked" self.extra_generation_params["Masked area padding"] = self.inpaint_full_res_padding @@ -1635,6 +1634,7 @@ def init(self, all_prompts, all_seeds, all_subseeds): crop_region = None image_mask = 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.' model_hijack.comments.append(massage) logging.info(massage)