Commit
·
737e734
1
Parent(s):
37b4d60
Update pipeline.py
Browse files- pipeline.py +2 -2
pipeline.py
CHANGED
@@ -783,8 +783,8 @@ class AnimateDiffPipeline(DiffusionPipeline, TextualInversionLoaderMixin, IPAdap
|
|
783 |
video_tensor = self.decode_latents(latents[:, :, start_idx:end_idx, :, :])
|
784 |
video = tensor2vid(video_tensor, self.image_processor, output_type=output_type)
|
785 |
|
786 |
-
for batch_idx, frame_batch in enumerate(video):
|
787 |
-
for frame_idx, frame in enumerate(frame_batch
|
788 |
frame_number = start_idx + batch_idx * len(frame_batch[0][0]) + frame_idx
|
789 |
frame.save(frame_format.format(frame_number))
|
790 |
return output_path
|
|
|
783 |
video_tensor = self.decode_latents(latents[:, :, start_idx:end_idx, :, :])
|
784 |
video = tensor2vid(video_tensor, self.image_processor, output_type=output_type)
|
785 |
|
786 |
+
for batch_idx, frame_batch in enumerate(video[0][0]):
|
787 |
+
for frame_idx, frame in enumerate(frame_batch):
|
788 |
frame_number = start_idx + batch_idx * len(frame_batch[0][0]) + frame_idx
|
789 |
frame.save(frame_format.format(frame_number))
|
790 |
return output_path
|