Skip to content

Commit

Permalink
fix mistake in AUTOMATIC1111#15583
Browse files Browse the repository at this point in the history
  • Loading branch information
w-e-w authored and ruchej committed Sep 30, 2024
1 parent c6ce4fc commit b97f7d7
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 @@ -1627,14 +1627,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 b97f7d7

Please sign in to comment.