diff --git a/README.md b/README.md index fd8eb40495..71f3526fef 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/ldm/generate.py b/ldm/generate.py index f19d12b460..af015b3ec4 100644 --- a/ldm/generate.py +++ b/ldm/generate.py @@ -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)) diff --git a/scripts/dream.py b/scripts/dream.py index 9b04df1536..bcca04225f 100755 --- a/scripts/dream.py +++ b/scripts/dream.py @@ -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',