'make_dataset' as staticmethod of 'DatasetFolder'#3215
'make_dataset' as staticmethod of 'DatasetFolder'#3215fmassa merged 3 commits intopytorch:masterfrom ain-soph:master
Conversation
|
Hey @ain-soph and thanks for the PR! I'm not sure I understand the purpose of this change. Could you elaborate this a bit?
|
|
@pmeier
Yes, exactly! I wanna read data from a zip file (which is not compressed), and it is a file whose contents follow Well, actually this It's just a use case, and I think
I see that the original method of |
IMO that is reasonable. Still, lets hear what @fmassa has to say about this.
GIven that in the future other implementations might use some object attributes or methods, I would simply define it as standard method. |
|
Any update? |
fmassa
left a comment
There was a problem hiding this comment.
This is something I had in mind for a while already, thanks for doing this!
Summary: * 'make_dataset' as staticmethod of 'DatasetFolder' * a better fix Reviewed By: datumbox Differential Revision: D25954567 fbshipit-source-id: 514fde3bad4e27518a198276228a36c3217c2163 Co-authored-by: Francisco Massa <[email protected]>
Make
DatasetFoldermore generalized so that subclasses could inheritDatasetFolderrather thanVisionDataset.Example: ZippedImageFolder #950
https://github.com/koenvandesande/vision/blob/6247d96d3ce658d553e4e2ceea5cedd77f715b29/torchvision/datasets/zippedfolder.py#L12-L123
If the pull request is approved. I can write it in a more convenient way without re-implement DatasetFolder utilities.
See my implementation at ZipFolder Issue