mnisten is a library to convert image files to idx format binaries.
image files:
.\
|--foo
| |--a.bmp
| |--b.bmp
| +--1.txt
+--bar
|--c.bmp
|--d.bmp
+--buzz
+--e.bmp
mnisten -d .\ -o prefix -s 32x24
then create:
option | parameters | meaning | required | default |
---|---|---|---|---|
--dir,-d | directory-name(string) | root directory of images | yes | - |
--output,-o | prefix(string) | prefix of output idx files | no | "" |
--num-tests,-n | num(int) | number of test data (if 0, all images are treated as training data) | no | 0 |
--size,-s | WxH(string) | size of each image data | no | 32x32 |
--without-shuffle,-w | (none) | disable data shuffling | no | false |
make
or build vc/mnisten.sln