smoothieAI commited on
Commit
c87f7fa
·
verified ·
1 Parent(s): 3af37c3

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +1 -0
pipeline.py CHANGED
@@ -1433,6 +1433,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
1433
  # get the current prompt index based on the current context position (for blending between multiple prompts)
1434
  context_position = current_context_indexes[0] % context_size
1435
  current_prompt_index = int(context_position / (context_size / num_prompts))
 
1436
 
1437
  # 7 Add image embeds for IP-Adapter
1438
  added_cond_kwargs = {"image_embeds": image_embeds[min(current_prompt_index, len(image_embeds) - 1)]} if ip_adapter_image is not None else None
 
1433
  # get the current prompt index based on the current context position (for blending between multiple prompts)
1434
  context_position = current_context_indexes[0] % context_size
1435
  current_prompt_index = int(context_position / (context_size / num_prompts))
1436
+ print(current_prompt_index)
1437
 
1438
  # 7 Add image embeds for IP-Adapter
1439
  added_cond_kwargs = {"image_embeds": image_embeds[min(current_prompt_index, len(image_embeds) - 1)]} if ip_adapter_image is not None else None