Update pipeline.py
Browse files- pipeline.py +1 -3
pipeline.py
CHANGED
@@ -1049,7 +1049,7 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1049 |
|
1050 |
|
1051 |
# set the step index to the current batch
|
1052 |
-
self.scheduler._step_index = i
|
1053 |
|
1054 |
# compute the previous noisy sample x_t -> x_t-1
|
1055 |
current_context_latents = self.scheduler.step(noise_pred, t, current_context_latents, **extra_step_kwargs).prev_sample
|
@@ -1079,8 +1079,6 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
1079 |
|
1080 |
# shuffle rotate latent images by step places, wrapping around the last 2 to the start
|
1081 |
latents = torch.cat([latents[:, :, -step:, :, :], latents[:, :, :-step, :, :]], dim=2)
|
1082 |
-
|
1083 |
-
print("Done denoising")
|
1084 |
|
1085 |
if output_type == "latent":
|
1086 |
return AnimateDiffPipelineOutput(frames=latents)
|
|
|
1049 |
|
1050 |
|
1051 |
# set the step index to the current batch
|
1052 |
+
# self.scheduler._step_index = i
|
1053 |
|
1054 |
# compute the previous noisy sample x_t -> x_t-1
|
1055 |
current_context_latents = self.scheduler.step(noise_pred, t, current_context_latents, **extra_step_kwargs).prev_sample
|
|
|
1079 |
|
1080 |
# shuffle rotate latent images by step places, wrapping around the last 2 to the start
|
1081 |
latents = torch.cat([latents[:, :, -step:, :, :], latents[:, :, :-step, :, :]], dim=2)
|
|
|
|
|
1082 |
|
1083 |
if output_type == "latent":
|
1084 |
return AnimateDiffPipelineOutput(frames=latents)
|