remove dangling -V from normalized dream command

This commit is contained in:
Lincoln Stein 2022-10-05 00:48:17 -04:00
parent 7e6443c882
commit 44e3995425

View File

@ -238,7 +238,7 @@ class Args(object):
if a['with_variations']:
formatted_variations = ','.join(f'{seed}:{weight}' for seed, weight in (a["with_variations"]))
switches.append(f'-V {formatted_variations}')
if 'variations' in a:
if 'variations' in a and len(a['variations'])>0:
switches.append(f'-V {a["variations"]}')
return ' '.join(switches)