caffe-ssd python demo运行时的小问题
$cd $CAFFE_SSD_ROOT
$pythoin examples/ssd/ssd_camera.py
运行到
net = caffe.Net(model_def, model_weights, caffe.TEST)
出错:
Check failed: fd != -1 (-1 vs. -1) File not found: data/VOC0712/labelmap_voc.prototxt
原因,/caffe-ssd/models/VGGNet/VOC0712/SSD_300x300/deploy.prototxt文档最后
output_name_prefix: "comp4_det_test_"
output_format: "VOC"
label_map_file: "data/VOC0712/labelmap_voc.prototxt"
把label_map_file改成绝对地址就可以了