Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -1072,7 +1072,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1072 |
# if its the first timestep, spread the indexes out evenly over the full frame range, offset by the group index
|
1073 |
if timestep <= 1:
|
1074 |
step_size = 2
|
1075 |
-
|
1076 |
else:
|
1077 |
# Calculate the frame index
|
1078 |
frame_index = (group_index * (local_context_size - overlap)) + (offset * timestep) + index
|
|
|
1072 |
# if its the first timestep, spread the indexes out evenly over the full frame range, offset by the group index
|
1073 |
if timestep <= 1:
|
1074 |
step_size = 2
|
1075 |
+
frame_index = (group_index * (local_context_size - overlap)) + (offset * timestep) + index
|
1076 |
else:
|
1077 |
# Calculate the frame index
|
1078 |
frame_index = (group_index * (local_context_size - overlap)) + (offset * timestep) + index
|