hpcaitech / Open-Sora

Open-Sora: Democratizing Efficient Video Production for All
https://hpcaitech.github.io/Open-Sora/
Apache License 2.0
20.1k stars 1.91k forks source link

AssertionError: Not enough frames to sample, 0 - 0 < 1 #537

Open syc11-25 opened 1 week ago

syc11-25 commented 1 week ago

csv文件经过了python -m tools.datasets.datautil ${ROOT_META}/meta_clips.csv --info --fmin 1过滤,num_frames最小值也是1,查看了一下代码,感觉按照逻辑是不会出现start_frame_ind和end_frame_ind都为0的情况,除非是len(vframe)==0,请问这是什么原因?是视频出现了破损吗?

syc11-25 commented 1 week ago

if vframes_list: vframes = torch.as_tensor(np.stack(vframes_list)) else: vframes = torch.empty((0, 1, 1, 3), dtype=torch.uint8)

是否是因为读视频失败?

github-actions[bot] commented 1 day ago

This issue is stale because it has been open for 7 days with no activity.