Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
|
@@ -1008,7 +1008,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
| 1008 |
|
| 1009 |
def context_scheduler(context_size, overlap, offset, total_frames, total_timesteps):
|
| 1010 |
# Calculate the number of context groups based on frame count and context size
|
| 1011 |
-
number_of_context_groups = (total_frames // (context_size - overlap))
|
| 1012 |
# Initialize a list to store context indexes for all timesteps
|
| 1013 |
all_context_indexes = []
|
| 1014 |
# Iterate over each timestep
|
|
|
|
| 1008 |
|
| 1009 |
def context_scheduler(context_size, overlap, offset, total_frames, total_timesteps):
|
| 1010 |
# Calculate the number of context groups based on frame count and context size
|
| 1011 |
+
number_of_context_groups = (total_frames // (context_size - overlap))
|
| 1012 |
# Initialize a list to store context indexes for all timesteps
|
| 1013 |
all_context_indexes = []
|
| 1014 |
# Iterate over each timestep
|