some changes for outpainting to produce less seams

This commit is contained in:
AUTOMATIC
2022-09-07 00:58:01 +03:00
parent 7ce7fb01e0
commit a8504157a0
2 changed files with 4 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ class Script(scripts.Script):
latent_mask = Image.new("L", (img.width, img.height), "white")
latent_draw = ImageDraw.Draw(latent_mask)
latent_draw.rectangle((left + 1, up + 1, mask.width - right - 1, mask.height - down - 1), fill="black")
latent_draw.rectangle((left + left//2, up + up//2, mask.width - right - right//2, mask.height - down - down//2), fill="black")
processing.torch_gc()