smoothieAI commited on
Commit
57f4540
·
verified ·
1 Parent(s): c5385e2

Update pipeline.py

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