Windows+caffe (vi)--convert.bat

Source: Internet
Author: User
Tags shuffle

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.