smoothieAI commited on
Commit
0678810
·
verified ·
1 Parent(s): a7f4efd

Update pipeline.py

Browse files
Files changed (1) hide show
  1. 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
- # make the context group stretch
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