1.首先我们使用lmdb数据格式(怎样得到lmdb数据格式,看我的另一篇)求得均值:

新建ComputeImageMean.bat,里面输入:

D:/deeptools/caffe-windows-master/bin/compute_image_mean.exe D:/deeptools/caffe-windows-master/examples/mymnist/train_lmdb D:/deeptools/caffe-windows-master/examples/mymnist/mean.binaryproto 
pause 

结果:

windows+caffe(七)——ComputeImageMean.bat

windows+caffe(七)——ComputeImageMean.bat

 

2.现在我们使用leveldb格式(怎么得到leveldb格式,看我的另一篇)来求得均值

新建ComputeImageMean-leveldb.bat,里面输入:

D:/deeptools/caffe-windows-master/bin/compute_image_mean.exe D:/deeptools/caffe-windows-master/examples/mymnist/trainbackend_leveldb D:/deeptools/caffe-windows-master/examples/mymnist/mean-leveldb.binaryproto --backend=leveldb 
pause 

我们可以看到 只是最后加了一个 --backend=leveldb!!!!!!!!

结果:

windows+caffe(七)——ComputeImageMean.bat

windows+caffe(七)——ComputeImageMean.bat