1.首先咱們使用lmdb數據格式(怎樣獲得lmdb數據格式,看個人另外一篇)求得均值:html
新建ComputeImageMean.bat,裏面輸入:windows
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
結果:spa
2.如今咱們使用leveldb格式(怎麼獲得leveldb格式,看個人另外一篇)來求得均值3d
新建ComputeImageMean-leveldb.bat,裏面輸入:code
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!!!!!!!!htm
結果:blog