some old code that i wrote, might be useful to others
Shell Lua
Latest commit 0d3f4f6 Jul 16, 2015 @soumith Update dataset.lua
Permalink
Failed to load latest commit information.
README.md Update README.md Oct 5, 2014
dataset.lua
testDataset.lua
testDatasetFullSplit.lua old tests Oct 5, 2014
testDatasetNoSplit.lua old tests Oct 5, 2014
valprep.sh
valprocess.lua validation groundtruth prep Jan 5, 2015

README.md

imagenetloader.torch

some old code that i wrote, might be useful to others.

If your dataset is of the form:

  • dogs/[image files of dogs]
  • cats/[image files of cats]
  • .
  • .
  • .

then this loader loads the dataset nicely, and you have class-balanced sampling, a test iterator and other useful things.

I also used it to load imagenet (both the 1.2million set and the 14 million full imagenet).