1inkusFace commited on
Commit
ba76ef1
·
verified ·
1 Parent(s): ff9a016

Update pipeline_stable_diffusion_3_ipa.py

Browse files
Files changed (1) hide show
  1. pipeline_stable_diffusion_3_ipa.py +1 -1
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((total_embedding_dim, embedding_dim), dtype=self.dtype).to(self.device)
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)