remove space between -V and its value in generated prompt, for consistency with other switches

This commit is contained in:
Lincoln Stein 2022-09-03 09:08:10 -04:00
parent e918cb1a8a
commit d8c0d020eb

View File

@ -70,10 +70,10 @@ class PromptFormatter:
if opt.upscale:
switches.append(f'-U {" ".join([str(u) for u in opt.upscale])}')
if opt.variation_amount > 0:
switches.append(f'-v {opt.variation_amount}')
switches.append(f'-v{opt.variation_amount}')
if opt.with_variations:
formatted_variations = ','.join(f'{seed}:{weight}' for seed, weight in opt.with_variations)
switches.append(f'-V {formatted_variations}')
switches.append(f'-V{formatted_variations}')
if t2i.full_precision:
switches.append('-F')
return ' '.join(switches)