【感謝:http://www.cnblogs.com/denny402/p/5102328.html】
compute_image_mean.bin生成均值文件mean.binaryproto:
caffe中使用的均值數據格式是binaryproto, 作者為我們提供了一個計算均值的文件compute_image_mean.cpp,放在caffe根目錄下的tools文件夾里面。編譯后的可執行體放在 build/tools/ 下面,我們直接調用就可以了
# sudo build/tools/compute_image_mean examples/mnist/mnist_train_lmdb examples/mnist/mean.binaryproto
