This commit is contained in:
Dominic Letz 2022-09-15 15:37:27 +02:00
parent 4d997145b4
commit 511924c9ab
3 changed files with 4 additions and 4 deletions

View File

@ -146,7 +146,7 @@ Please check out our **[Q&A](docs/help/TROUBLESHOOT.md)** to get solutions for c
This extension uses the new inpainting code to extend an existing image to any direction
of "top", "right", "bottom" or "left". To use it you need to provide an initial image with
-I and an extension direction with -D (direction). When extending using outpainting a higher
img2img strength value of 0.83 is the default.
img2img strength value of 0.83 is the default.
~~~~
dream> man with cat on shoulder -I./images/man.png -D bottom

View File

@ -619,7 +619,7 @@ class Generate:
pixels = None
elif len(direction_args) == 2:
direction = direction_args[0]
pixels = int(direction_args[1])
pixels = int(direction_args[1])
assert direction in ['top', 'left', 'bottom', 'right'], 'Direction (-D) must be one of "top", "left", "bottom", "right"'
@ -647,7 +647,7 @@ class Generate:
# taking the bottom from the original image
bottom = image.crop((0, 0, image.width, image.height - pixels))
new_img = image.copy()
new_img.paste(top, (0, 0))
new_img.paste(bottom, (0, pixels))

View File

@ -604,7 +604,7 @@ def create_cmd_parser():
type=str,
metavar=('direction', 'pixels'),
help='Direction to extend the given image (left|right|top|bottom). If a distance pixel value is not specified it defaults to half the image size'
)
)
parser.add_argument(
'-M',
'--init_mask',