mirror of
https://github.com/hpcaitech/Open-Sora.git
synced 2026-04-11 05:13:31 +02:00
[feat] backend=av
This commit is contained in:
parent
6fe7aa36b9
commit
ba6c800e9a
|
|
@ -68,7 +68,7 @@ class VideoTextDataset(torch.utils.data.Dataset):
|
|||
|
||||
if file_type == "video":
|
||||
# loading
|
||||
vframes, vinfo = read_video(path, backend='cv2')
|
||||
vframes, vinfo = read_video(path, backend='av')
|
||||
video_fps = vinfo["video_fps"] if 'video_fps' in vinfo else 24
|
||||
|
||||
# Sampling video frames
|
||||
|
|
@ -145,7 +145,7 @@ class VariableVideoTextDataset(VideoTextDataset):
|
|||
video_fps = 24 # default fps
|
||||
if file_type == "video":
|
||||
# loading
|
||||
vframes, vinfo = read_video(path, backend='cv2')
|
||||
vframes, vinfo = read_video(path, backend='av')
|
||||
video_fps = vinfo["video_fps"] if 'video_fps' in vinfo else 24
|
||||
|
||||
# Sampling video frames
|
||||
|
|
|
|||
Loading…
Reference in a new issue