Fix issue where more than the expected number of variants are generated

This commit is contained in:
Sean McLellan 2022-08-24 16:26:58 -04:00
parent 4d72644db4
commit dd16fe16bb

View File

@ -183,6 +183,7 @@ def main_loop(t2i,parser,log,infile):
if opt.variants is not None:
print(f"Generating {opt.variants} variant(s)...")
newopt = copy.deepcopy(opt)
newopt.iterations = 1
newopt.variants = None
for r in results:
newopt.init_img = r[0]