2016-04-02 1803 views
0

我做的https://www.tensorflow.org/versions/master/tutorials/image_recognition/index.htmlgoogle.protobuf.message.DecodeError:错误解析消息

教程和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,但作为目录树让我到g我不能得到它oogle/protobuf,不再进一步。没有io目录。 现在我应该做什么的提示?

感谢 彼得

+0

https://developers.google.com/protocol-buffers/docs/reference/cpp/google .protobuf.io.coded_stream#CodedInputStream.Limit.details – Torxed

回答

3
+0

非常感谢。这解决了我的问题。我第一次尝试了一个Docker镜像的教程,该镜像完全运行正常,然后想在我的iMac上安装Tensorflow的本地安装程序并且在那里失败。 –

+0

在我基于anaconda环境的tensorflow安装中,我确实遇到了上面提出的protobuf pip包的问题。我收到一条消息 成功安装protobuf-3.0.0b2.post2 因此,我想安装进行得非常顺利。但现在进行一个简单的测试,进入Python并导入张量流,我得到这个错误 ImportError:dlopen(/Users/peterhirt/anaconda/envs/tf1/lib/python2.7/site-packages/google/protobuf/pyext /_message.so,2):库未加载:/usr/local/lib/libprotobuf.10.dylib 原因:没有找到图片 什么是不工作 非常感谢 彼得 –

+0

你能不能提交任何提示github tensorflow上的问题并将其链接到此处?有它在蟒蛇的工作似乎是有益 –