smoothieAI commited on
Commit
5549023
·
verified ·
1 Parent(s): 99fe7a5

Update pipeline.py

Browse files
Files changed (1) hide show
  1. 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 = ((timestep + 1) * 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
 
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