support multiple IP adapter inputs as tensor

This commit is contained in:
Pierre Chapuis 2024-02-09 16:29:54 +01:00
parent 5a7085bb3a
commit 402d3105b4

View file

@ -440,7 +440,7 @@ class IPAdapter(Generic[T], fl.Chain, Adapter[T]):
self.set_context("ip_adapter", {"clip_image_embedding": image_embedding})
@overload
def compute_clip_image_embedding(self, image_prompt: Tensor) -> Tensor:
def compute_clip_image_embedding(self, image_prompt: Tensor, weights: list[float] | None = None) -> Tensor:
...
@overload