这是indexloc提供的服务,不要输入任何密码
Skip to content

The video reading speed in mm_plugin.py is currently too slow #8538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PengDa02
Copy link

@PengDa02 PengDa02 commented Jul 3, 2025

The video reading speed in mm_plugin.py is currently too slow with O(n) complexity, which causes significant delays when processing long videos during training. The performance further degrades noticeably as the number of frames increases. This PR aims to optimize the logic in both _regularize_images and _regularize_videos to improve the processing speed.

…n) complexity, which causes significant delays when processing long videos during training. The performance further degrades noticeably as the number of frames increases. This PR aims to optimize the logic in both _regularize_images and _regularize_videos to improve the processing speed.
@hiyouga hiyouga self-requested a review July 3, 2025 07:14
@hiyouga hiyouga added the pending This problem is yet to be addressed label Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending This problem is yet to be addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants