AttributeError: 'module' object has no attribute 'LabelMap'
来源:4-6 Caffe-SSD框架搭建及训练脚本解读

慕粉1422388549
2019-03-03
运行create_data.sh出现错误
root@localhost widerface]# ./create_data.sh
Traceback (most recent call last):
File “/home/p/cuda/caffe-SSD/caffe-ssd/data/widerface/…/…/scripts/create_annoset.py”, line 103, in
label_map = caffe_pb2.LabelMap()
AttributeError: ‘module’ object has no attribute 'LabelMap’
Traceback (most recent call last):
File “/home/p/cuda/caffe-SSD/caffe-ssd/data/widerface/…/…/scripts/create_annoset.py”, line 103, in
label_map = caffe_pb2.LabelMap()
AttributeError: ‘module’ object has no attribute ‘LabelMap’
写回答
1回答
-
慕粉1422388549
提问者
2019-03-03
添加caffe-sdd的环境变量
export PYTHONPATH=/home/p/cuda/caffe-SSD/caffe-ssd/python:$PYTHONPATH
00
相似问题