mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-24 15:18:46 +00:00
support multiple IP adapter inputs as tensor
This commit is contained in:
parent
5a7085bb3a
commit
402d3105b4
|
@ -440,7 +440,7 @@ class IPAdapter(Generic[T], fl.Chain, Adapter[T]):
|
||||||
self.set_context("ip_adapter", {"clip_image_embedding": image_embedding})
|
self.set_context("ip_adapter", {"clip_image_embedding": image_embedding})
|
||||||
|
|
||||||
@overload
|
@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
|
@overload
|
||||||
|
|
Loading…
Reference in a new issue