mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fixup
This commit is contained in:
parent
4d997145b4
commit
511924c9ab
@ -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
|
||||
|
@ -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))
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user