[英]Tensorflow: __new__() got an unexpected keyword argument 'serialized_options' in Object Detection API
I tried installing Tensorflow object detection API from this guide: https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md 我尝试从本指南安装Tensorflow对象检测API: https : //github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md
I have installed all the dependencies and when I try to test the run the .py file it throws the "got an unexpected keyword argument 'serialized_options' " as mentioned in the title. 我已经安装了所有依赖项,当我尝试运行.py文件时,它会抛出“标题中提到的”有一个意外的关键字参数'serialized_options'“。
As mentioned by most of the people regarding the downgrading of protobuf protoc version to 3.4, I have tried doing that and my version is 3.4, but still it throws the same error. 正如大多数人所说的关于将protobuf protoc版本降级到3.4,我已经尝试过这样做,我的版本是3.4,但它仍然会抛出同样的错误。
Please help. 请帮忙。
Update protobuf
to last version (3.6.x currently). 将protobuf
更新到上一版本(当前为3.6.x)。
Please refer to this github issue-comment if you want know more: https://github.com/protocolbuffers/protobuf/issues/4716#issuecomment-428293527 如果您想了解更多信息,请参阅此github问题 - 评论: https : //github.com/protocolbuffers/protobuf/issues/4716#issuecomment-428293527
You can either: 你可以:
*_pb2.py
files. 手从生成的*_pb2.py
文件中删除“serialized_options = None”参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.