2017-04-14 35 views
0

caffe安裝在Ubuntu服務器上,並且測試沒問題。我只是運行Ubutun(16.04)的雲服務器上的下面的代碼:caffe:AttributeError:'module'對象沒有屬性'LabelMap'

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' 

難道你們給我一些建議如何解決它。謝謝!

回答

0

雖然您已經安裝了BVLC咖啡,但應該爲您安裝新咖啡的版本(caffe github.com/weiliu89)。 -