Spaces:
Running
on
Zero
Running
on
Zero
Update pipeline_stable_diffusion_3_ipa.py
Browse files
pipeline_stable_diffusion_3_ipa.py
CHANGED
|
@@ -1191,7 +1191,7 @@ class StableDiffusion3Pipeline(DiffusionPipeline, SD3LoraLoaderMixin, FromSingle
|
|
| 1191 |
|
| 1192 |
# Add a ReLU activation for non-linearity (optional)
|
| 1193 |
combined_embeds = torch.relu(combined_embeds)
|
| 1194 |
-
clip_image_embeds =
|
| 1195 |
|
| 1196 |
# 4. Prepare timesteps
|
| 1197 |
timesteps, num_inference_steps = retrieve_timesteps(self.scheduler, num_inference_steps, device, timesteps)
|
|
|
|
| 1191 |
|
| 1192 |
# Add a ReLU activation for non-linearity (optional)
|
| 1193 |
combined_embeds = torch.relu(combined_embeds)
|
| 1194 |
+
clip_image_embeds = combined_embeds #torch.cat(image_prompt_embeds_list).mean(dim=0).unsqueeze(0)
|
| 1195 |
|
| 1196 |
# 4. Prepare timesteps
|
| 1197 |
timesteps, num_inference_steps = retrieve_timesteps(self.scheduler, num_inference_steps, device, timesteps)
|