google.protobuf.message.DecodeError:分析消息时出错



我正在做关于https://www.tensorflow.org/versions/master/tutorials/image_recognition/index.html

在Python API部分的工作中,我启动了python classify_image.py

在这里,我得到了这样的错误消息:

A protocol message was rejected because it was too big (more than 67108864 bytes). To increase the limit (or to disable these warnings), see CodedInputStream::SetTotalBytesLimit() in google/protobuf/io/coded_stream.h.

因此,我尝试访问文件coded_stream.h,但我无法访问它,因为目录树正在让我访问google/protobuf,再也没有了。没有io目录。关于我现在应该做什么有什么提示吗?

谢谢Peter

您需要安装自定义protobuf-pip包,详细信息如下:https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md#protobuf-图书馆相关问题

编辑:(更新链接)https://www.tensorflow.org/versions/r1.0/install/install_linux#protobuf_pip_package_31

最新更新