Caffe: AttributeError: 'module' object has no attribute 'LabelMap'

Created on 8 Jul 2016  路  3Comments  路  Source: weiliu89/caffe

$ ./data/VOC0712/create_data.sh
Traceback (most recent call last):
File "/home/chuanjun/Documents/caffe/data/VOC0712/../../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/chuanjun/Documents/caffe/data/VOC0712/../../scripts/create_annoset.py", line 103, in
label_map = caffe_pb2.LabelMap()
AttributeError: 'module' object has no attribute 'LabelMap'

Most helpful comment

Is your python path including the right directory? Make sure it points to the SSD branch of Caffe and not some other version you have installed on your system.

For example: "export PYTHONPATH=/path/to/CaffeSSD/python:$PYTHONPATH".

All 3 comments

$ ./data/VOC0712/create_list.sh
no problem
but when I used $ ./data/VOC0712/create_data.sh ,it failed.

Is your python path including the right directory? Make sure it points to the SSD branch of Caffe and not some other version you have installed on your system.

For example: "export PYTHONPATH=/path/to/CaffeSSD/python:$PYTHONPATH".

Thanks, I have solved this problem by modify the PYTHONPATH

Was this page helpful?
0 / 5 - 0 ratings