-
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
Properly fix dataset test that passes by accident #3434
Merged
Merged
Changes from 11 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
6178e5d
make UsageError an Exception rather than RuntimeError
pmeier 299593b
separate fake data injection and dataset args handling
pmeier 315c4f6
adapt tests for Coco
pmeier e2b6938
fix Coco implementation
pmeier 9d6a573
add documentation
pmeier d02b3a6
Merge branch 'master' into fix-test-not-found
pmeier 2a00510
Merge branch 'master' into fix-test-not-found
pmeier 7bf4ddb
fix VideoDatasetTestCase
pmeier 5842348
adapt UCF101 tests
pmeier ac1bdc0
cleanup
pmeier 5bfe619
Merge remote-tracking branch 'pmeier/fix-test-not-found' into fix-tes…
pmeier a50bc71
allow FileNotFoundError for test without fake data
pmeier 02be779
Revert "fix Coco implementation"
pmeier 3b5ccaa
Merge branch 'master' into fix-test-not-found
pmeier adf5db2
lint
pmeier d23b243
Merge branch 'master' into fix-test-not-found
pmeier 43136d3
fix UCF101 tests
pmeier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I'm not sure we should be changing the call-sites so that the current test infra works. Plus,
FileNotFoundError
is a meaningful type of error to be raised in here. Would your plan be to change all locations in the code to always raiseRuntimeError
?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.
IMO every dataset should handle corrupted or non-existent files properly. I wouldn't do that to satisfy our tests, but rather because it can make the life of the user easier with a descriptive error message. Plus, this is what you agreed to
vision/test/datasets_utils.py
Lines 398 to 401 in 67681a7
I agree. I'll update the test infrastructure.
That was the original plan, yes. Maybe we can differentiate between
RuntimeError
for corrupted andFileNotFoundError
for non-existent files. If we want to make sure we could also opt to create anFileCorruptedError(Exception)
and check for that instead of a more generalRuntimeError
.