* check for missing parameters.

This commit is contained in:
Peter Baylies 2022-09-12 18:35:10 -04:00
parent 2a292d5b82
commit 5941ee620c

View File

@ -73,9 +73,9 @@ class PromptFormatter:
switches.append(f'-G{opt.gfpgan_strength}')
if opt.upscale:
switches.append(f'-U {" ".join([str(u) for u in opt.upscale])}')
if opt.embiggen:
if hasattr(opt, 'embiggen') and opt.embiggen:
switches.append(f'-embiggen {" ".join([str(u) for u in opt.embiggen])}')
if opt.embiggen_tiles:
if hasattr(opt, 'embiggen_tiles') and opt.embiggen_tiles:
switches.append(f'-embiggen_tiles {" ".join([str(u) for u in opt.embiggen_tiles])}')
if opt.variation_amount > 0:
switches.append(f'-v{opt.variation_amount}')