-
Notifications
You must be signed in to change notification settings - Fork 7.1k
allow single extension as str in make_dataset #5229
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
Conversation
💊 CI failures summary and remediationsAs of commit 60a3cf3 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
test/test_datasets_utils.py
Outdated
], | ||
) | ||
def test_make_dataset_no_valid(self, tmpdir, kwargs, expected_error_msg): | ||
tmpdir = pathlib.Path(tmpdir) |
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.
TIL, that tmpdir
is not a pathlib.Path
, but rather a custom type which acts somewhat like a pathlib.Path
. Still, methods like .touch
do not exists, so we cast here.
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.
Thanks @pmeier , I'm going to approve to unlock but since we'll likely not use that utility anymore, I'm not convinced this is strongly needed
Hey @pmeier! You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py |
Summary: * allow single extension as str in make_dataset * remove test class * remove regex * revert collection to tuple * cleanup Reviewed By: jdsgomes, prabhat00155 Differential Revision: D33739394 fbshipit-source-id: 460a1576a18d9ee61657302c10b3e51156cd66fd
Fixes #5164 (comment).