diff options
author | AUTOMATIC <16777216c@gmail.com> | 2022-09-06 21:58:01 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2022-09-06 21:58:01 +0000 |
commit | a8504157a02e61d787a2b924f4f8de6f578f0aac (patch) | |
tree | bf5e9049b2db6a9430c53c597d926b819a70760f /scripts/poor_mans_outpainting.py | |
parent | 7ce7fb01e035a7ba8ca9cb35784cd75cca3d99fd (diff) | |
download | stable-diffusion-webui-gfx803-a8504157a02e61d787a2b924f4f8de6f578f0aac.tar.gz stable-diffusion-webui-gfx803-a8504157a02e61d787a2b924f4f8de6f578f0aac.tar.bz2 stable-diffusion-webui-gfx803-a8504157a02e61d787a2b924f4f8de6f578f0aac.zip |
some changes for outpainting to produce less seams
Diffstat (limited to 'scripts/poor_mans_outpainting.py')
-rw-r--r-- | scripts/poor_mans_outpainting.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/poor_mans_outpainting.py b/scripts/poor_mans_outpainting.py index d0f6a2fc..08171877 100644 --- a/scripts/poor_mans_outpainting.py +++ b/scripts/poor_mans_outpainting.py @@ -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()
|