[Minor][Clean] Remove the legacy assertion in video (#29150)
Signed-off-by: gcanlin <canlinguosdu@gmail.com>
This commit is contained in:
@@ -113,11 +113,6 @@ class VideoLoader:
|
||||
valid_num_frames,
|
||||
)
|
||||
|
||||
assert i == valid_num_frames, (
|
||||
f"Expected reading {valid_num_frames} frames, "
|
||||
f"but only loaded {i} frames from video."
|
||||
)
|
||||
|
||||
return frames[:valid_num_frames], valid_num_frames, valid_frame_indices
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user