extract_features.exe models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel examples/_temp/imagenet_val.prototxt fc7 examples/_temp/features 10 leveldb CPU
extract_features.exe models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel examples/_temp/imagenet_val.prototxt fc7 examples/_temp/features 10 leveldb GPU
(PS:GPU不等于1,会出错)
准备工作:
1.bvlc_reference_caffenet.caffemodel
2.imagenet_val.prototxt
3.data\ilsvrc12\imagenet_mean.binaryproto
4.examples/_temp/file_list.txt 写一个批处理文件将\examples\images路径下的图片文件名file_list.txt,并且每一行后面加个0.
ERROR:
1.cannot load .jpg file
解决办法:file_list.txt文件名包含路径
2.Failed to open leveldb examples/_temp/features
解决办法:it is because the directory examples/_temp/features has been created the last time you run the command. Remove it and run again.