Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -1022,7 +1022,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1022 |
# Iterate over each index in the context group
|
1023 |
for index in range(context_size):
|
1024 |
# Calculate the frame index
|
1025 |
-
frame_index = (
|
1026 |
# If frame index exceeds total frames, wrap around
|
1027 |
if frame_index >= total_frames:
|
1028 |
frame_index %= total_frames
|
|
|
1022 |
# Iterate over each index in the context group
|
1023 |
for index in range(context_size):
|
1024 |
# Calculate the frame index
|
1025 |
+
frame_index = (group_index * (context_size - overlap)) + (offset * timestep) + index
|
1026 |
# If frame index exceeds total frames, wrap around
|
1027 |
if frame_index >= total_frames:
|
1028 |
frame_index %= total_frames
|