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

廉价感情. 提交于 2019-12-12 09:28:11

问题


The caffe is installed on the Ubuntu server,and it test is ok. I just run the following code on the Ubutun(16.04) cloud server:

  import caffe
   from caffe.proto import caffe_pb2


   label_map = caffe_pb2.LabelMap()

and I have run the command as following which provided by the internet, but there is still error:

command:

export PYTHONPATH=$/home2/challenge98/caffe/python:$PYTHONPATH

error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'LabelMap'

Could you guys give me some advices how to solve it. Thanks!


回答1:


Should install the version of new caffe(https://github.com/weiliu89/caffe) for you work, although you have installed the BVLC caffe. –



来源:https://stackoverflow.com/questions/43409093/caffeattributeerror-module-object-has-no-attribute-labelmap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!