Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -1431,7 +1431,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1431 |
latent_model_input = self.scheduler.scale_model_input(latent_model_input, t)
|
1432 |
|
1433 |
# get the current prompt index based on the current context position (for blending between multiple prompts)
|
1434 |
-
context_position = current_context_indexes[0] %
|
1435 |
current_prompt_index = int(context_position / (context_size / num_prompts))
|
1436 |
print(current_prompt_index)
|
1437 |
|
|
|
1431 |
latent_model_input = self.scheduler.scale_model_input(latent_model_input, t)
|
1432 |
|
1433 |
# get the current prompt index based on the current context position (for blending between multiple prompts)
|
1434 |
+
context_position = current_context_indexes[0] % len(context_indexes[i])
|
1435 |
current_prompt_index = int(context_position / (context_size / num_prompts))
|
1436 |
print(current_prompt_index)
|
1437 |
|