Update pipeline.py
Browse files- pipeline.py +1 -1
pipeline.py
CHANGED
@@ -1531,7 +1531,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1531 |
# Perform batch addition
|
1532 |
noise_pred_uncond_sum[..., current_context_indexes, :, :] += noise_pred_uncond
|
1533 |
noise_pred_text_sum[..., current_context_indexes, :, :] += noise_pred_text
|
1534 |
-
latent_counter[
|
1535 |
|
1536 |
torch.cuda.synchronize() # Synchronize GPU after batch addition
|
1537 |
time_batch_addition_end = time.time()
|
|
|
1531 |
# Perform batch addition
|
1532 |
noise_pred_uncond_sum[..., current_context_indexes, :, :] += noise_pred_uncond
|
1533 |
noise_pred_text_sum[..., current_context_indexes, :, :] += noise_pred_text
|
1534 |
+
latent_counter[current_context_indexes] += 1
|
1535 |
|
1536 |
torch.cuda.synchronize() # Synchronize GPU after batch addition
|
1537 |
time_batch_addition_end = time.time()
|