ObjectDetecionAPI TypeError: __new__() got an unexpected keyword argument 'serialized_options'

这一生的挚爱 提交于 2019-12-12 12:34:33

问题


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?


回答1:


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




回答2:


Updating protobuf to 3.6 works for me.

pip install -U protobuf



回答3:


On python3, none of the above solution worked. So I uninstalled the existing installation using pip. Then installed again by pip3 install protobuf. Then it worked.




回答4:


Updating protobuf to 3.8 works for me.

pip install -U protobuf


来源:https://stackoverflow.com/questions/50338968/objectdetecionapi-typeerror-new-got-an-unexpected-keyword-argument-seria

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!