Skip to content

Commit 58d05d6

Browse files
authored
Update rerender_a_video.py
1 parent 06335fb commit 58d05d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

examples/community/rerender_a_video.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,9 @@ def __call__(
907907
progress_bar.update()
908908
if callback is not None and i % callback_steps == 0:
909909
callback(i, t, latents)
910+
911+
if XLA_AVAILABLE:
912+
xm.mark_step()
910913

911914
if not output_type == "latent":
912915
image = self.vae.decode(latents / self.vae.config.scaling_factor, return_dict=False)[0]

0 commit comments

Comments
 (0)