Adjust sd_helpers for overmask
parent
ff7d3d84c1
commit
0333b721a2
|
|
@ -45,6 +45,7 @@ def renderImg2Img(
|
|||
inpainting_fill_mode,
|
||||
inpainting_full_res,
|
||||
inpainting_padding,
|
||||
mask_invert=False
|
||||
):
|
||||
processed = None
|
||||
|
||||
|
|
@ -67,15 +68,16 @@ def renderImg2Img(
|
|||
inpainting_fill=inpainting_fill_mode,
|
||||
inpaint_full_res=inpainting_full_res,
|
||||
inpaint_full_res_padding=inpainting_padding,
|
||||
inpainting_mask_invert= mask_invert,
|
||||
mask=mask_image,
|
||||
)
|
||||
# p.latent_mask = Image.new("RGB", (p.width, p.height), "white")
|
||||
|
||||
|
||||
processed = process_images(p)
|
||||
# For those that use Image grids this will make sure that ffmpeg does not crash out
|
||||
if (len(processed.images) > 1) and (processed.images[0].size[0] != processed.images[-1].size[0]):
|
||||
processed.images.pop(0)
|
||||
print("\nGrid image detected applying patch")
|
||||
|
||||
|
||||
newseed = p.seed
|
||||
return processed, newseed
|
||||
return processed, newseed
|
||||
|
|
|
|||
Loading…
Reference in New Issue