caffe:AttributeError: 'module' object has no attribute 'LabelMap'
caffe:AttributeError: 'module' object has no attribute 'LabelMap'
caffe安装在Ubuntu服务器上,测试正常。我只是 运行 Ubutun(16.04) 云服务器上的以下代码:
import caffe
from caffe.proto import caffe_pb2
label_map = caffe_pb2.LabelMap()
我有运行网上提供的命令如下,但还是报错:
命令:
export PYTHONPATH=$/home2/challenge98/caffe/python:$PYTHONPATH
错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'LabelMap'
你们能给我一些解决方法的建议吗?谢谢!
应该安装新版本的caffe(https://github.com/weiliu89/caffe)才能工作,虽然你已经安装了BVLC caffe。 –
caffe安装在Ubuntu服务器上,测试正常。我只是 运行 Ubutun(16.04) 云服务器上的以下代码:
import caffe
from caffe.proto import caffe_pb2
label_map = caffe_pb2.LabelMap()
我有运行网上提供的命令如下,但还是报错:
命令:
export PYTHONPATH=$/home2/challenge98/caffe/python:$PYTHONPATH
错误:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'LabelMap'
你们能给我一些解决方法的建议吗?谢谢!
应该安装新版本的caffe(https://github.com/weiliu89/caffe)才能工作,虽然你已经安装了BVLC caffe。 –