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

add tests for MNIST and variants #3423

Merged
merged 17 commits into from
Mar 24, 2021
Merged

add tests for MNIST and variants #3423

merged 17 commits into from
Mar 24, 2021

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented Feb 21, 2021

This adds tests for [EQ]MNIST and supersedes the old tests for (Fashion|K)?MNIST.

Blocked by #3420.

@pmeier pmeier mentioned this pull request Feb 21, 2021
@fmassa
Copy link
Member

fmassa commented Feb 22, 2021

There are some conflicts now, can you look into fixing them?

test/datasets_utils.py Outdated Show resolved Hide resolved
torchvision/datasets/mnist.py Outdated Show resolved Hide resolved
@pmeier pmeier requested review from fmassa and NicolasHug and removed request for fmassa March 16, 2021 13:33
@pmeier pmeier marked this pull request as draft March 17, 2021 07:41
@pmeier
Copy link
Collaborator Author

pmeier commented Mar 17, 2021

Blocked by #3578.

@pmeier pmeier removed request for NicolasHug and fmassa March 17, 2021 08:21
@pmeier pmeier requested a review from NicolasHug March 22, 2021 12:13
Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

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

Thanks @pmeier , some minor comment but LGTM anyway!

test/test_datasets.py Show resolved Hide resolved
test/test_datasets.py Show resolved Hide resolved
@pmeier pmeier marked this pull request as ready for review March 22, 2021 13:20
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.

Looks great to me, thanks!

Can you just keep the mnist_root for now to err on the safe side?

test/fakedata_generation.py Outdated Show resolved Hide resolved
@pmeier pmeier requested a review from fmassa March 24, 2021 12:26
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.

Thanks!

@fmassa fmassa merged commit aa36599 into pytorch:master Mar 24, 2021
facebook-github-bot pushed a commit that referenced this pull request Apr 1, 2021
Summary:
* add tests for MNIST and variants

* remove old tests and fakedata generation

* fix default config detection for if dataset has variable keywords

* use split="mnist" as default for EMNIST

* fix QMNIST tests

* lint

* fix special kwargs detection

* Revert "use split="mnist" as default for EMNIST"

This reverts commit 62c9b23.

* fix tests

* fix QMNIST test case name

* remove dead code from test

* Revert "remove old tests and fakedata generation"

This reverts commit a285b97.

* remove old tests

* readd removed import

Reviewed By: fmassa

Differential Revision: D27433912

fbshipit-source-id: 2af75d5531880266286cd2a4045fcdee594da548
@pmeier pmeier deleted the test-mnist branch April 14, 2021 06:55
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.

4 participants