This commit is contained in:
Dominic Letz 2022-09-15 15:43:33 +02:00
parent 9faf7025c6
commit 8d2afefe6a
2 changed files with 3 additions and 3 deletions

View File

@ -632,7 +632,7 @@ class Generate:
elif direction == 'right':
image = image.transpose(Image.Transpose.ROTATE_90)
pixels = image.height//2 if pixels == None else int(pixels)
pixels = image.height//2 if pixels is None else int(pixels)
assert 0 < pixels < image.height, 'Direction (-D) pixels length must be in the range 0 - image.size'
# the top part of the image is taken from the source image mirrored

View File

@ -204,7 +204,8 @@ def main_loop(gen, outdir, prompt_as_dir, parser, infile):
opt.seed = None
continue
opt.strength = 0.83 if opt.out_direction and opt.strength is None else opt.strength
if opt.strength is None:
opt.strength = 0.75 if opt.out_direction is None else 0.75
if opt.with_variations is not None:
# shotgun parsing, woo
@ -621,7 +622,6 @@ def create_cmd_parser():
parser.add_argument(
'-f',
'--strength',
default=0.75,
type=float,
help='Strength for noising/unnoising. 0.0 preserves image exactly, 1.0 replaces it completely',
)