1inkusFace commited on
Commit
5727c5f
·
verified ·
1 Parent(s): d2d759f

Update pipeline_stable_diffusion_3_ipa.py

Browse files
Files changed (1) hide show
  1. pipeline_stable_diffusion_3_ipa.py +8 -8
pipeline_stable_diffusion_3_ipa.py CHANGED
@@ -1151,26 +1151,26 @@ class StableDiffusion3Pipeline(DiffusionPipeline, SD3LoraLoaderMixin, FromSingle
1151
  image_prompt_embeds_list.append(clip_image_embeds_1)
1152
  if clip_image_2 != None:
1153
  print('Using secondary image.')
1154
- clip_image_2 = clip_image_2.resize((max(clip_image.size), max(clip_image.size)))
1155
- image_prompt_embeds_2 = self.encode_clip_image_emb(clip_image, device, dtype)
1156
  image_prompt_embeds_2 = image_prompt_embeds_2 * scale_2
1157
  image_prompt_embeds_list.append(image_prompt_embeds_2)
1158
  if clip_image_3 != None:
1159
  print('Using tertiary image.')
1160
- clip_image_3 = clip_image_3.resize((max(clip_image.size), max(clip_image.size)))
1161
- image_prompt_embeds_3 = self.encode_clip_image_emb(clip_image, device, dtype)
1162
  image_prompt_embeds_3 = image_prompt_embeds_3 * scale_3
1163
  image_prompt_embeds_list.append(image_prompt_embeds_3)
1164
  if clip_image_4 != None:
1165
  print('Using quaternary image.')
1166
- clip_image_4 = clip_image_4.resize((max(clip_image.size), max(clip_image.size)))
1167
- image_prompt_embeds_4 = self.encode_clip_image_emb(clip_image, device, dtype)
1168
  image_prompt_embeds_4 = image_prompt_embeds_4 * scale_4
1169
  image_prompt_embeds_list.append(image_prompt_embeds_4)
1170
  if clip_image_5 != None:
1171
  print('Using quinary image.')
1172
- clip_image_5 = clip_image_5.resize((max(clip_image.size), max(clip_image.size)))
1173
- image_prompt_embeds_5 = self.encode_clip_image_emb(clip_image, device, dtype)
1174
  image_prompt_embeds_5 = image_prompt_embeds_5 * scale_5
1175
  image_prompt_embeds_list.append(image_prompt_embeds_5)
1176
 
 
1151
  image_prompt_embeds_list.append(clip_image_embeds_1)
1152
  if clip_image_2 != None:
1153
  print('Using secondary image.')
1154
+ clip_image_2 = clip_image_2.resize((max(clip_image_2.size), max(clip_image_2.size)))
1155
+ image_prompt_embeds_2 = self.encode_clip_image_emb(clip_image_2, device, dtype)
1156
  image_prompt_embeds_2 = image_prompt_embeds_2 * scale_2
1157
  image_prompt_embeds_list.append(image_prompt_embeds_2)
1158
  if clip_image_3 != None:
1159
  print('Using tertiary image.')
1160
+ clip_image_3 = clip_image_3.resize((max(clip_image_3.size), max(clip_image_3.size)))
1161
+ image_prompt_embeds_3 = self.encode_clip_image_emb(clip_image_3, device, dtype)
1162
  image_prompt_embeds_3 = image_prompt_embeds_3 * scale_3
1163
  image_prompt_embeds_list.append(image_prompt_embeds_3)
1164
  if clip_image_4 != None:
1165
  print('Using quaternary image.')
1166
+ clip_image_4 = clip_image_4.resize((max(clip_image_4.size), max(clip_image_4.size)))
1167
+ image_prompt_embeds_4 = self.encode_clip_image_emb(clip_image_4, device, dtype)
1168
  image_prompt_embeds_4 = image_prompt_embeds_4 * scale_4
1169
  image_prompt_embeds_list.append(image_prompt_embeds_4)
1170
  if clip_image_5 != None:
1171
  print('Using quinary image.')
1172
+ clip_image_5 = clip_image_5.resize((max(clip_image_5.size), max(clip_image_5.size)))
1173
+ image_prompt_embeds_5 = self.encode_clip_image_emb(clip_image_5, device, dtype)
1174
  image_prompt_embeds_5 = image_prompt_embeds_5 * scale_5
1175
  image_prompt_embeds_list.append(image_prompt_embeds_5)
1176