caffe:AttributeError:“模块”对象没有属性“ LabelMap” [英] caffe:AttributeError: 'module' object has no attribute 'LabelMap'

查看:79
本文介绍了caffe:AttributeError:“模块”对象没有属性“ LabelMap”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

caffe已安装在Ubuntu服务器上,并且测试正常。我只是在Ubutun(16.04)云服务器上运行以下代码:

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:

命令:

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'

你们能给我吗一些建议如何解决它。谢谢!

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

推荐答案

应安装新caffe的版本( https://github.com/weiliu89/caffe )为您工作,尽管您已经安装了BVLC caffe。 –

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

这篇关于caffe:AttributeError:“模块”对象没有属性“ LabelMap”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆