Closed flyingmrwang closed 4 years ago
You mean add documentation? It is a good suggestion but currently I do not have the bandwidth to do since I am traveling. It would be great if you can submit a PR.
No, I am just replacing my ImageFolder with ImageFolderLMDB. While my upcomming dataLoader requires sampler, which will analyze the distribution of classes. The thing is original ImageFolder provide output like the the whole list besides iterator, while yours only provide iterator. So I am just wondering if it is possible to add them. I already find my lazy way to make it merged into my pipeline, so just a suggestion to improve if you have time in the future.
This seems really helpful to improve IO for pytorch dataset. But I also notice the return value is not totally in the same format as imageFolder() when simply replace in training script. Do you have plan to make it available for output of your ImageFolderLMDB like following?
https://pytorch.org/docs/stable/_modules/torchvision/datasets/folder.html#ImageFolder