From c7beb1b311c863e6ada3fe37f51ada3625188133 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Deltheil?= Date: Tue, 23 Jan 2024 17:28:34 +0100 Subject: [PATCH] image_prompt: remove obsolete comment Not needed anymore since #168 (CrossAttentionAdapter refactoring) --- src/refiners/foundationals/latent_diffusion/image_prompt.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/refiners/foundationals/latent_diffusion/image_prompt.py b/src/refiners/foundationals/latent_diffusion/image_prompt.py index 8d6378be9..bd1c8d4b1 100644 --- a/src/refiners/foundationals/latent_diffusion/image_prompt.py +++ b/src/refiners/foundationals/latent_diffusion/image_prompt.py @@ -413,7 +413,6 @@ def set_scale(self, scale: float) -> None: 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)