Skip to content

Commit 84854b4

Browse files
authored
Merge branch 'main' into DC-AE-tiling
2 parents d2f2d2b + 1b0fe63 commit 84854b4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
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:

src/diffusers/schedulers/scheduling_ddim_inverse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def set_timesteps(self, num_inference_steps: int, device: Union[str, torch.devic
266266

267267
self.num_inference_steps = num_inference_steps
268268

269-
# "leading" and "trailing" corresponds to annotation of Table 1. of https://arxiv.org/abs/2305.08891
269+
# "leading" and "trailing" corresponds to annotation of Table 2. of https://arxiv.org/abs/2305.08891
270270
if self.config.timestep_spacing == "leading":
271271
step_ratio = self.config.num_train_timesteps // self.num_inference_steps
272272
# creates integer timesteps by multiplying by ratio

0 commit comments

Comments
 (0)