-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Improvement] Add a tool to find invalid videos. #907
[Improvement] Add a tool to find invalid videos. #907
Conversation
Codecov Report
@@ Coverage Diff @@
## master #907 +/- ##
==========================================
- Coverage 83.58% 83.53% -0.06%
==========================================
Files 132 132
Lines 9977 9977
Branches 1720 1720
==========================================
- Hits 8339 8334 -5
- Misses 1219 1222 +3
- Partials 419 421 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Great tool. However, I think it can still be improved from two aspects:
|
Yeah try to read the first, last and random three frames |
Motivation
Fix #893
Check all samples from a video dataset specified by the configuration file, and save file paths of invalid videos(corrupted or missing) in an output file.
Modification
Add a script in
tools
and update related usefull tool docs.Use cases (Optional)
decord
to decode all videos from the train set of/path/to/config.py
with 5 processes, save all invalid video paths ininvalid_videos.txt
opencv
to decode all videos from the test set of/path/to/config.py
with 10 processes, save all invalid video paths ininvalid_videos.txt
and remove all corrupted videos.python tools/check_videos.py /path/to/config.py \ --decoder opencv \ --split test \ --output-file invalid_videos.txt \ --remove-corrupted-videos \ --num-processes 10
TODO
--decoder