mirror of
https://github.com/finegrain-ai/refiners.git
synced 2024-11-21 21:58:47 +00:00
image_prompt: remove obsolete comment
Not needed anymore since #168 (CrossAttentionAdapter refactoring)
This commit is contained in:
parent
3b458f0d8d
commit
695c24dd3a
|
@ -413,7 +413,6 @@ class IPAdapter(Generic[T], fl.Chain, Adapter[T]):
|
|||
def set_clip_image_embedding(self, image_embedding: Tensor) -> None:
|
||||
self.set_context("ip_adapter", {"clip_image_embedding": image_embedding})
|
||||
|
||||
# These should be concatenated to the CLIP text embedding before setting the UNet context
|
||||
def compute_clip_image_embedding(self, image_prompt: Tensor) -> Tensor:
|
||||
image_encoder = self.clip_image_encoder if not self.fine_grained else self.grid_image_encoder
|
||||
clip_embedding = image_encoder(image_prompt)
|
||||
|
|
Loading…
Reference in a new issue