1、制作数据 标签 label.bat
dir/s/on/b >0.txt
2、制作lmdb convert_lmdb.bat
SET GLOG_logtostderr=1 E:caffeWincaffe-masterBuildx64Releaseconvert_imageset.exe --backend=lmdb --resize_width=32 --resize_height=32 --gray=false --shuffle G:actionDataNew G:actionDataNew rainList.txt G:actionDataNew rain_lmdb E:caffeWincaffe-masterBuildx64Releaseconvert_imageset.exe --backend=lmdb --resize_width=32 --resize_height=32 --gray=false --shuffle G:actionDataNew G:actionDataNewvalList.txt G:actionDataNew est_lmdb pause
3、计算均值 mean.bat
SET GLOG_logtostderr=1 F:CaffeVs2013caffe-ssd-microsoftBuildx64Releasecompute_image_mean.exe --backend=lmdb G:actionDataNew rain_lmdb G:actionDataNewmean.binaryproto pause
准备 train.prototxt 和 solver.prototxt
linux服务器训练
#!/usr/bin/env sh set -e TOOLS=/home/tsari/caffe/build/tools $TOOLS/caffe train --solver=/home/tsari/WorkSpace/OpenCloseFourLei/cifar10_quick_solver.prototxt $@