-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Test for SVHN #1086
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
Test for SVHN #1086
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1086 +/- ##
==========================================
+ Coverage 64.66% 64.88% +0.21%
==========================================
Files 68 68
Lines 5406 5411 +5
Branches 829 831 +2
==========================================
+ Hits 3496 3511 +15
+ Misses 1661 1643 -18
- Partials 249 257 +8
Continue to review full report at Codecov.
|
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 a lot for the PR!
The new tests look great!
I have a question regarding passing the creation of the PIL images in the constructor: does it speed up significantly the __getitem__
step? Because this is a potentially breaking change, as users could have accessed the .data
field beforehand.
So it would be good to know how much slowdown this represents.
It takes ~80µs per image (on my machine) for the conversion, thus making the performance advantage negligible. I would argue that the performance was never the decisive factor for this PR. I simply found it odd that we keep the data as If you think BC is more important here, I'm happy to roll back the changes and only keep the test for |
@pmeier I think it's important to keep BC until we have a clear story about what are the fields of datasets that users can use, and those that they shouldn't rely on. Your issue on unifying datasets is a great start, and I'll make some comments today on it. If you could revert the BC changes and keep only the test for |
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 a lot!
This moves the cast from
numpy.ndarray
toPIL.Image
from__getitem__()
to__init__()
for theCIFAR10
,CIFAR10
, andSVHN
dataset. Additionally, this adds a dataset test for theSVHN
dataset.