-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Add tests for UCF101 #3411
Add tests for UCF101 #3411
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3411 +/- ##
==========================================
- Coverage 76.01% 75.12% -0.89%
==========================================
Files 105 105
Lines 9697 9722 +25
Branches 1556 1563 +7
==========================================
- Hits 7371 7304 -67
- Misses 1839 1932 +93
+ Partials 487 486 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, now tests for UCF101 runs much faster! Thanks a lot!
Summary: * enable default frames per clips for video test cases * add tests for UCF101 * remove old tests as well as fake data generation * better explain frames_per_clip overriding * lint Reviewed By: fmassa Differential Revision: D26756269 fbshipit-source-id: c3a6ae69a0e3155864bd3d09556a99f7f6771953 Co-authored-by: Francisco Massa <fvsmassa@gmail.com>
This makes use of the added dataset test case base class and supersedes older tests for UCF101. Since we now work with much (spatially) smaller videos, this significantly reduces the wall time.
In addition, this adds the capability to leave out the
frames_per_clip
argument, which is required in every video dataset. If no value is returned byinject_fake_data()
we simply add1
as default. With this we have a 1-to-1 correspondence oflen(dataset)
to videos generated bycreate_video_folder()
. Since all video datasets use aVideoClips
object internally that handles the clip generation, we don't need to test that here.