我们用caffe画网络结构图的时候可能出现如下错误:“AttributeError: ‘google.protobuf.pyext._message.RepeatedScalarConta’ object has no attribute ‘_values”
实际上是由于protobuf(例如centos7(protobuf=3.2)) 版本过高导致。
解决办法:
pip uninstall protobuf
pip install protobuf==2.6.0
本文介绍了解决在使用Caffe绘制网络结构图时出现的错误“AttributeError:‘google.protobuf.pyext._message.RepeatedScalarConta’objecthasnoattribute‘_values”的方法。错误由protobuf版本过高引起,解决步骤包括卸载现有protobuf并安装指定版本。
我们用caffe画网络结构图的时候可能出现如下错误:“AttributeError: ‘google.protobuf.pyext._message.RepeatedScalarConta’ object has no attribute ‘_values”
实际上是由于protobuf(例如centos7(protobuf=3.2)) 版本过高导致。
解决办法:
pip uninstall protobuf
pip install protobuf==2.6.0

被折叠的 条评论
为什么被折叠?