ObjectDetecionAPI TypeError: __new__() 得到了一个意外的关键字参数“serialized_options" [英] ObjectDetecionAPI TypeError: __new__() got an unexpected keyword argument 'serialized_options'

查看:94
本文介绍了ObjectDetecionAPI TypeError: __new__() 得到了一个意外的关键字参数“serialized_options"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md 并最后更新了我的 protoc.当我输入 $ protoc --version 时,它会在终端上抛出 libprotoc 3.5.1.但是当我尝试执行 $ python object_detection/builders/model_builder_test.py 时,它会抛出一个错误 TypeError: _ new _() got an unexpected keyword argument 'serialized_options'.我做错了什么?

I did everything it says at https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md and lastly updated my protoc. When i enter $ protoc --version, it throws libprotoc 3.5.1 on the terminal. But when i try to do $ python object_detection/builders/model_builder_test.py, it throws an error TypeError: _ new _() got an unexpected keyword argument 'serialized_options'. What am i doing wrong?

推荐答案

基于 this thread 在 TensorFlow 存储库中,您应该将 protobuf 降级到 3.4.0.

Based on this thread in the TensorFlow repository, you should downgrade your protobuf to 3.4.0.

这篇关于ObjectDetecionAPI TypeError: __new__() 得到了一个意外的关键字参数“serialized_options"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆