标签:
http://caffe.berkeleyvision.org/gathered/examples/feature_extraction.html
1:caffe 目录下运行:scripts/download_model_binary.py models/bvlc_reference_caffenet
2:mkdir examples/_temp
3:find `pwd`/examples/images -type f -exec echo {} \; > examples/_temp/temp.txt
4:sed "s/$/ 0/" examples/_temp/temp.txt > examples/_temp/file_list.txt
5:./data/ilsvrc12/get_ilsvrc_aux.sh
6:cp examples/feature_extraction/imagenet_val.prototxt examples/_temp
7:./build/tools/extract_features.bin models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel examples/_temp/imagenet_val.prototxt fc7 examples/_temp/features 10 leveldb
结果存在examples/_temp/features
下
caffe-feature extraction (官网流程)
标签:
原文地址:http://www.cnblogs.com/fanghong/p/5656056.html