2016-04-02 539 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上的問題並將其鏈接到此處?有它在蟒蛇的工作似乎是有益 –

相關問題