简体   繁体   English

Tensorflow:__ new __()在Object Detection API中得到了一个意外的关键字参数'serialized_options'

[英]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: 你可以:

  1. upgrade to Protobuf 3.6.0 or 升级到Protobuf 3.6.0或
  2. hand delete the "serialized_options=None," argument from the generated *_pb2.py files. 手从生成的*_pb2.py文件中删除“serialized_options = None”参数。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从Python运行Tensorflow Deep Dream教程时发生TypeError:TypeError:__init __()获得了意外的关键字参数&#39;serialized_options&#39; - TypeError while Running Tensorflow Deep Dream Tutorial from Python: TypeError: __init__() got an unexpected keyword argument 'serialized_options' Python TypeError:__init __()获得了意外的关键字参数&#39;serialized_options&#39; - Python TypeError: __init__() got an unexpected keyword argument 'serialized_options' Tensorboard TypeError:__init__() 得到了一个意外的关键字参数“serialized_options” - Tensorboard TypeError: __init__() got an unexpected keyword argument 'serialized_options' TypeError: __new__() 得到了一个意外的关键字参数 'load' - TypeError: __new__() got an unexpected keyword argument 'load' <Tensorflow object detection> TypeError:resize_images()获得了意外的关键字参数&#39;preserve_aspect_ratio&#39; - <Tensorflow object detection>TypeError: resize_images() got an unexpected keyword argument 'preserve_aspect_ratio' Discord.py 错误:TypeError: __new__() got an unexpected keyword argument 'deny_new' - Discord.py error: TypeError: __new__() got an unexpected keyword argument 'deny_new' 即使 Discord.py 在 1.4.1 上,获取 `TypeError: __new__() 有一个意外的关键字参数 'deny_new' - Getting `TypeError: __new__() got an unexpected keyword argument 'deny_new' even though Discord.py is on 1.4.1 TypeError:histogram()得到了意外的关键字参数“ new” - TypeError: histogram() got an unexpected keyword argument 'new' 有一个意外的关键字参数 - Got an unexpected keyword argument TypeError:__init __()获得了意外的关键字参数&#39;options&#39; - TypeError: __init__() got an unexpected keyword argument 'options'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM