Skip to content
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

Addresses issue #145 as per @fmessa's suggestion. #527

Merged
merged 2 commits into from
Jun 6, 2018

Conversation

Choco31415
Copy link
Contributor

@Choco31415 Choco31415 commented Jun 4, 2018

This PR makes DatasetFolder more flexible by moving find_classes to DatasetFolder. See issue #145 and fmessa's comment for more information.

I tested the code using this short snippet: https://gist.github.com/Choco31415/051d6bf59b65c2347166bc5b4f956396

The test includes one using a basic DatasetFolder, and one with find_classes overridden to work with the Omniglot dataset. Not included is also a test for when the dataset is nested within a few directories.

Copy link
Member

@fmassa fmassa left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@fmassa fmassa merged commit 3f6c23c into pytorch:master Jun 6, 2018
varunagrawal pushed a commit to varunagrawal/vision that referenced this pull request Jul 23, 2018
* Addresses issue pytorch#145 as per @fmessa's suggestion.

* Removed blank line for styling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants