mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Fix issue where more than the expected number of variants are generated
This commit is contained in:
parent
4d72644db4
commit
dd16fe16bb
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user