mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 17:24:32 +02:00
faceid fix batch
This commit is contained in:
+5
-1
@@ -178,7 +178,11 @@ class Script(scripts.Script):
|
||||
ip_model_dict['faceid_embeds'] = face_embeds
|
||||
|
||||
# run generate
|
||||
images = ip_model.generate(**ip_model_dict)
|
||||
images = []
|
||||
for _i in range(p.n_iter):
|
||||
res = ip_model.generate(**ip_model_dict)
|
||||
if isinstance(res, list):
|
||||
images += res
|
||||
|
||||
if not cache:
|
||||
ip_model = None
|
||||
|
||||
Reference in New Issue
Block a user