diff --git a/invokeai/app/invocations/latent.py b/invokeai/app/invocations/latent.py index 86e217e165..c74dd8d55a 100644 --- a/invokeai/app/invocations/latent.py +++ b/invokeai/app/invocations/latent.py @@ -711,9 +711,8 @@ class DenoiseLatentsInvocation(BaseInvocation): ) -> Optional[List[IPAdapterData]]: """If IP-Adapter is enabled, then this function loads the requisite models and adds the image prompt conditioning data.""" ip_adapter_data_list = [] - assert len(ip_adapters) == len(image_prompts) for single_ip_adapter, (image_prompt_embeds, uncond_image_prompt_embeds) in zip( - ip_adapters, image_prompts, strict=False + ip_adapters, image_prompts, strict=True ): ip_adapter_model = exit_stack.enter_context(context.models.load(single_ip_adapter.ip_adapter_model))