The format of the Convert.bat is
Convert_imageset.exe position + Space +flags+ space + picture location + Space + The location of the list you generated + space + the location to save the DB format to be generated
It is recommended to use absolute location!!!
Example:
D:/deeptools/caffe-windows-master/bin/convert_imageset.exe--shuffle--resize_height= --resize_width= d:/deeptools/caffe-windows-master/data/re/d:/deeptools/caffe-windows-master/examples/myfile/ Train.txt d:/deeptools/caffe-windows-master/examples/myfile/train_dbpause
Where flags can be chosen as:
(1)--shuffle randomly shuffle the picture order "default to False"
D:/deeptools/caffe-windows-master/bin/convert_imageset.exe--shuffle d:/deeptools/caffe-windows-master/data/ Mnist/train-images/d:/deeptools/caffe-windows-master/examples/mymnist/train.txt D:/deeptools/ caffe-windows-master/examples/mymnist/Train_lmdbpause
Why shuffle the picture order randomly?
To answer the question ...
(2)--gray whether to turn on "false by default" as a grayscale image
--gray d:/deeptools/caffe-windows-master/data/mnist/train-images/d:/deeptools/caffe-windows-master/examples/mymnist/ Train.txt d:/deeptools/caffe-windows-master/examples/mymnist/traingray_lmdbpause
(3)--resize_width
--resize_height Change picture size (zoom) "Default is Original"
(4)--backend need to convert into what format db, optional LEVELDB and Lmdb format "default is Lmdb"
D:/deeptools/caffe-windows-master/bin/convert_imageset.exe--backend=leveldb D:/deeptools/caffe-windows-master/ Data/mnist/train-images/d:/deeptools/caffe-windows-master/examples/mymnist/train.txt D:/deeptools/ caffe-windows-master/examples/mymnist/Trainbackend_leveldbpause
Results:
Now let's take a serious look at this leveldb format:
Http://www.2cto.com/kf/201607/527860.html
Cond... I don't know what the tangle is.
(5)--check_size Check that all data is the same size "default is False, do not check"
(6)--encoded whether to put the original code into the final data "default to False"
(7)--encode_type and the front echoes, change the picture to which format "png,jpg. 】
Looks like this need to OPENCV. I did not install OPENCV error as follows
Windows+caffe (vi)--convert.bat