Skip to content

Commit fe378b3

Browse files
authored
Update pipeline_text_to_video_zero.py
1 parent 6a60504 commit fe378b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/diffusers/pipelines/text_to_video_synthesis/pipeline_text_to_video_zero.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,10 @@ def backward_loop(
446446
if callback is not None and i % callback_steps == 0:
447447
step_idx = i // getattr(self.scheduler, "order", 1)
448448
callback(step_idx, t, latents)
449+
450+
if XLA_AVAILABLE:
451+
xm.mark_step()
452+
449453
return latents.clone().detach()
450454

451455
# Copied from diffusers.pipelines.stable_diffusion_k_diffusion.pipeline_stable_diffusion_k_diffusion.StableDiffusionKDiffusionPipeline.check_inputs

0 commit comments

Comments
 (0)