[Minor][Clean] Remove the legacy assertion in video (#29150)

Signed-off-by: gcanlin <canlinguosdu@gmail.com>
This commit is contained in:
Canlin Guo 2025-11-21 15:52:34 +08:00 committed by GitHub
parent e4c3182c68
commit 7d6da483b0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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