Skip to content

Commit d6c030f

Browse files
chaowenguohlkyyiyixuxu
authored
add the xm.mark_step for the first denosing loop (#10530)
* Update rerender_a_video.py * Update rerender_a_video.py * Update examples/community/rerender_a_video.py Co-authored-by: hlky <[email protected]> * Update rerender_a_video.py * make style --------- Co-authored-by: hlky <[email protected]> Co-authored-by: YiYi Xu <[email protected]>
1 parent 9f06a0d commit d6c030f

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
@@ -908,6 +908,9 @@ def __call__(
908908
if callback is not None and i % callback_steps == 0:
909909
callback(i, t, latents)
910910

911+
if XLA_AVAILABLE:
912+
xm.mark_step()
913+
911914
if not output_type == "latent":
912915
image = self.vae.decode(latents / self.vae.config.scaling_factor, return_dict=False)[0]
913916
else:

0 commit comments

Comments
 (0)