Update pipeline_stable_diffusion_3_ipa.py
Browse files
pipeline_stable_diffusion_3_ipa.py
CHANGED
@@ -1179,7 +1179,7 @@ class StableDiffusion3Pipeline(DiffusionPipeline, SD3LoraLoaderMixin, FromSingle
|
|
1179 |
embedding_dim = concatenated_embeds.shape[-1] # Get the embedding dimension
|
1180 |
|
1181 |
total_embedding_dim = concatenated_embeds.shape
|
1182 |
-
linear_layer = nn.Linear((
|
1183 |
clip_image_embeds = linear_layer(concatenated_embeds)
|
1184 |
|
1185 |
# Add a ReLU activation for non-linearity (optional)
|
|
|
1179 |
embedding_dim = concatenated_embeds.shape[-1] # Get the embedding dimension
|
1180 |
|
1181 |
total_embedding_dim = concatenated_embeds.shape
|
1182 |
+
linear_layer = nn.Linear(embedding_dim * len(image_prompt_embeds_list), embedding_dim * len(image_prompt_embeds_list), dtype=self.dtype).to(self.device)
|
1183 |
clip_image_embeds = linear_layer(concatenated_embeds)
|
1184 |
|
1185 |
# Add a ReLU activation for non-linearity (optional)
|