Unverified Commit d6c030fd authored by chaowenguo's avatar chaowenguo Committed by GitHub
Browse files

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: default avatarhlky <hlky@hlky.ac>

* Update rerender_a_video.py

* make style

---------
Co-authored-by: default avatarhlky <hlky@hlky.ac>
Co-authored-by: default avatarYiYi Xu <yixu310@gmail.com>
parent 9f06a0d1
......@@ -908,6 +908,9 @@ class RerenderAVideoPipeline(StableDiffusionControlNetImg2ImgPipeline):
if callback is not None and i % callback_steps == 0:
callback(i, t, latents)
if XLA_AVAILABLE:
xm.mark_step()
if not output_type == "latent":
image = self.vae.decode(latents / self.vae.config.scaling_factor, return_dict=False)[0]
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment