Caffe to generate your own files Lmdb

Source: Internet
Author: User

Reference website:

Http://www.cnblogs.com/darkknightzh/p/5909121.html (under Linux)

Http://www.mamicode.com/info-detail-1338521.html (under Windows)

Http://www.cnblogs.com/denny402/p/5082341.html (the simplest and most straightforward example)

http://www.2cto.com/kf/201607/527860.html (mnist data format and Lmdb conversion Code analysis)

HTTP://NBVIEWER.JUPYTER.ORG/GITHUB/BVLC/CAFFE/BLOB/MASTER/EXAMPLES/00-CLASSIFICATION.IPYNB (official website tutorial python do classification)

Caffe to generate your own files Lmdb

    1. Build txt List of picture file lists

http://blog.csdn.net/sinat_30071459/article/details/51613304 (label making)

    1. called convert_imageset.sh to convert

To create an executable file Create_imagenet_train.bat

  1. .. \.. \build\x64\release\convert_imageset.exe
  2. --resize_height=256
  3. --resize_width=256 # Zoom
  4. --shuffle # Scramble Order
  5. F:\ImageDatabase\GoogleImage\GoogleImage-small\ # Image Path
  6. D:\Dev\caffe-master\examples\googleimages\train.txt # Label Path
  7. F:\ImageDatabase\GoogleImage\lmdb\googleimagessmall_train_lmdb # destination path, not present
  8. Pause # Pause

similarly Create_imagenet_val.bat

    1. Calculate mean File

Create a batch file Compute_mean.bat

    1. .. \.. \build\x64\release\compute_image_mean.exe
    2. F:\ImageDatabase\GoogleImage\lmdb\googleimagessmall_train_lmdb #train Lmdb Path
    3. D:\Dev\caffe-master\examples\googleimages\mean.binaryproto # Output Path
    4. Pause

Iv. List of documents

will be Lmdb documents, mean documents, label put the files in the right place .

Configure the path in the network configuration file to train

Caffe to generate your own files Lmdb

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.