Skip to content

Commit

Permalink
Merge pull request #15587 from AUTOMATIC1111/fix-mistake-in-#15583
Browse files Browse the repository at this point in the history
fix mistake in #15583
  • Loading branch information
AUTOMATIC1111 authored Apr 22, 2024
2 parents a183ea4 + 6c7c176 commit e4aa0c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1617,14 +1617,14 @@ 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
else:
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)
Expand Down

0 comments on commit e4aa0c3

Please sign in to comment.