From 2b6d78e4363f3eca726228a40b6de832eb0ac040 Mon Sep 17 00:00:00 2001 From: Lincoln Stein Date: Wed, 26 Oct 2022 08:29:56 -0400 Subject: [PATCH] minor cleanups - remove --fnformat from canonicalized dream prompt arguments (not needed for image reproducibility) - add -tm to canonicalized dream prompt arguments (definitely needed for image reproducibility) --- ldm/invoke/args.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ldm/invoke/args.py b/ldm/invoke/args.py index 2f8e2303cb..b24620df15 100644 --- a/ldm/invoke/args.py +++ b/ldm/invoke/args.py @@ -217,7 +217,6 @@ class Args(object): switches.append(f'-W {a["width"]}') switches.append(f'-H {a["height"]}') switches.append(f'-C {a["cfg_scale"]}') - switches.append(f'--fnformat {a["fnformat"]}') if a['perlin'] > 0: switches.append(f'--perlin {a["perlin"]}') if a['threshold'] > 0: @@ -243,6 +242,8 @@ class Args(object): switches.append(f'-f {a["strength"]}') if a['inpaint_replace']: switches.append(f'--inpaint_replace') + if a['text_mask']: + switches.append(f'-tm {" ".join([str(u) for u in a["text_mask"]])}') else: switches.append(f'-A {a["sampler_name"]}')