Skip to content

add tests for Kinetics400 #3457

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

Merged
merged 5 commits into from
Mar 1, 2021
Merged

add tests for Kinetics400 #3457

merged 5 commits into from
Mar 1, 2021

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Feb 25, 2021

No description provided.

Comment on lines +973 to +974
def test_not_found_or_corrupted(self):
self.skipTest("Dataset currently does not handle the case of no found videos.")
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be removed after #2903 is fixed.

@vadimkantorov
Copy link

maybe related: #3273

@pmeier
Copy link
Collaborator Author

pmeier commented Feb 25, 2021

@vadimkantorov That would be #3453 😉

@codecov
Copy link

codecov bot commented Feb 25, 2021

Codecov Report

Merging #3457 (d36e2ba) into master (5266a72) will increase coverage by 0.29%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3457      +/-   ##
==========================================
+ Coverage   75.96%   76.26%   +0.29%     
==========================================
  Files         105      105              
  Lines        9707     9697      -10     
  Branches     1556     1556              
==========================================
+ Hits         7374     7395      +21     
+ Misses       1852     1822      -30     
+ Partials      481      480       -1     
Impacted Files Coverage Δ
torchvision/transforms/_transforms_video.py 88.88% <0.00%> (-0.35%) ⬇️
torchvision/models/mobilenetv2.py 86.95% <0.00%> (-0.28%) ⬇️
torchvision/transforms/_functional_video.py 95.23% <0.00%> (-0.22%) ⬇️
torchvision/datasets/phototour.py 25.25% <0.00%> (+<0.01%) ⬆️
torchvision/transforms/functional_tensor.py 79.23% <0.00%> (+0.19%) ⬆️
torchvision/models/detection/anchor_utils.py 94.66% <0.00%> (+1.33%) ⬆️
torchvision/ops/deform_conv.py 72.30% <0.00%> (+3.07%) ⬆️
torchvision/extension.py 67.21% <0.00%> (+16.39%) ⬆️
torchvision/datasets/kinetics.py 96.00% <0.00%> (+56.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5266a72...bf2a0dd. Read the comment docs.

@pmeier pmeier mentioned this pull request Feb 25, 2021
Copy link
Collaborator

@vfdev-5 vfdev-5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Comment on lines +1038 to +1042
def test_not_found_or_corrupted(self):
# LSUN does not raise built-in exception, but a custom one. It is expressive enough to not 'cast' it to
# RuntimeError or FileNotFoundError that are normally checked by this test.
with self.assertRaises(datasets_utils.lazy_importer.lmdb.Error):
super().test_not_found_or_corrupted()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this is an unrelated fix and would have been better fit for a separate PR

@fmassa fmassa merged commit 1826e92 into pytorch:master Mar 1, 2021
@pmeier pmeier deleted the kinetics400-test branch March 1, 2021 11:14
facebook-github-bot pushed a commit that referenced this pull request Mar 4, 2021
Summary:
* add tests for Kinetics400

* use create_random_string()

Reviewed By: fmassa

Differential Revision: D26756281

fbshipit-source-id: a4fb2dde283a45cc8675db343d765881ceaba91d

Co-authored-by: Philip Meier <[email protected]>
Co-authored-by: Francisco Massa <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants