aboutsummaryrefslogtreecommitdiff
path: root/modules/processing.py
diff options
context:
space:
mode:
authorAUTOMATIC <16777216c@gmail.com>2022-09-05 23:08:06 +0300
committerAUTOMATIC <16777216c@gmail.com>2022-09-05 23:08:06 +0300
commitb6763fb8847df5a5678f37137e7a702569e5c925 (patch)
treea535916207766972b929de713c6d3bb1f2a2f2d8 /modules/processing.py
parentf5563853b83aa8fd60484af1c0d6a9691c887d25 (diff)
added random artist button
added a setting for padding when doing inpaint at original resolution
Diffstat (limited to 'modules/processing.py')
-rw-r--r--modules/processing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py
index b744aa87..c0c1adb7 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -324,7 +324,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
if self.inpaint_full_res:
self.mask_for_overlay = self.image_mask
mask = self.image_mask.convert('L')
- crop_region = get_crop_region(np.array(mask), 64)
+ crop_region = get_crop_region(np.array(mask), opts.upscale_at_full_resolution_padding)
x1, y1, x2, y2 = crop_region
mask = mask.crop(crop_region)