mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
add check for congruence between # of ip_adapters and image_prompts
This commit is contained in:
parent
7391c126d3
commit
e28737fc8b
@ -731,6 +731,7 @@ class DenoiseLatentsInvocation(BaseInvocation):
|
||||
return None
|
||||
|
||||
ip_adapter_data_list = []
|
||||
assert len(ip_adapter) == len(image_prompts)
|
||||
for single_ip_adapter in ip_adapter:
|
||||
ip_adapter_model = exit_stack.enter_context(context.models.load(single_ip_adapter.ip_adapter_model))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user