Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/diffusers/video_processor.py
  • Loading branch information
yiyixuxu authored May 5, 2024
commit 2721d9c526bac1c7cb9d09ac250e4037040d76e0
2 changes: 1 addition & 1 deletion src/diffusers/video_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def preprocess_video(self, video) -> torch.Tensor:
video = torch.cat(video, axis=0)

# ensure the input is a list of videos. if it is a batch of videos, it is converted to a list of videos
# If it is is a single video, it is convereted to a list of videos.
# If it is is a single video, it is convereted to a list of one video.
if isinstance(video, (np.ndarray, torch.Tensor)) and video.ndim == 5:
video = list(video)
elif isinstance(video, list) and is_valid_image(video[0]) or is_valid_image_imagelist(video):
Expand Down