mirror of
https://github.com/THUDM/CogVideo.git
synced 2026-05-16 13:44:26 +08:00
When loading videos with fewer frames than max_num_frames, repeat the last frame to reach the required length instead of failing. This ensures consistent tensor dimensions across the dataset while preserving as much original video content as possible.