成功解决TypeError: __init__() got an unexpected keyword argument 'serialized_options'
成功解决TypeError: __init__() got an unexpected keyword argument 'serialized_options'
目录
解决问题
解决思路
解决方法
解决问题
TypeError: __init__() got an unexpected keyword argument 'serialized_options'
File "object_detection/builders/model_builder_test.py", line 24, in <module>from object_detection.builders import model_builderFile "F:\File_Python\Python_example\models-master\research\object_detection\builders\model_builder.py", line 20, in <module>from object_detection.builders import anchor_generator_builderFile "F:\File_Python\Python_example\models-master\research\object_detection\builders\anchor_generator_builder.py", line 21, in <module>from object_detection.protos import anchor_generator_pb2File "F:\File_Python\Python_example\models-master\research\object_detection\protos\anchor_generator_pb2.py", line 15, in <module>from object_detection.protos import grid_anchor_generator_pb2 as object__detection_dot_protos_dot_grid__anchor__generator__pb2File "F:\File_Python\Python_example\models-master\research\object_detection\protos\grid_anchor_generator_pb2.py", line 22, in <module>serialized_pb=_b('\n3object_detection/protos/grid_anchor_generator.proto\x12\x17object_detection.protos\"\xcd\x01\n\x13GridAnchorGenerator\x12\x13\n\x06height\x18\x01 \x01(\x05:\x03\x32\x35\x36\x12\x12\n\x05width\x18\x02 \x01(\x05:\x03\x32\x35\x36\x12\x19\n\rheight_stride\x18\x03 \x01(\x05:\x02\x31\x36\x12\x18\n\x0cwidth_stride\x18\x04 \x01(\x05:\x02\x31\x36\x12\x18\n\rheight_offset\x18\x05 \x01(\x05:\x01\x30\x12\x17\n\x0cwidth_offset\x18\x06 \x01(\x05:\x01\x30\x12\x0e\n\x06scales\x18\x07 \x03(\x02\x12\x15\n\raspect_ratios\x18\x08 \x03(\x02')
TypeError: __init__() got an unexpected keyword argument 'serialized_options'
解决思路
类型错误:__init__()得到意外的关键字参数“serialized_options”
出现该问题,很有可能是,终端上的 protoc 版本 与python库内的protobuf版本不一样。
解决方法
安装对应版本的库即可!比如我的执行下列命令
pip install -U protobuf
大功告成!完美解决!
成功解决TypeError: __init__() got an unexpected keyword argument 'serialized_options'相关推荐
- 成功解决TypeError: __init__() got an unexpected keyword argument 'indices'
成功解决TypeError: __init__() got an unexpected keyword argument 'indices' 目录 解决问题 解决思路 解决方法 解决问题 TypeEr ...
- 成功解决TypeError: __init__() got an unexpected keyword argument 'n_iterations'
成功解决TypeError: __init__() got an unexpected keyword argument 'n_iterations' 目录 解决问题 解决思路 解决方法 解决问题 T ...
- 成功解决TypeError: read_excel() got an unexpected keyword argument ‘parse_cols or ‘sheetname‘
成功解决TypeError: read_excel() got an unexpected keyword argument 'parse_cols' TypeError: read_excel() ...
- 成功解决TypeError: take() got an unexpected keyword argument ‘fill_value‘
成功解决TypeError: take() got an unexpected keyword argument 'fill_value' 目录 解决问题 解决思路 解决方法 解决问题 Traceba ...
- 成功解决TypeError: map() got an unexpected keyword argument 'num_threads'
成功解决TypeError: map() got an unexpected keyword argument 'num_threads' 目录 解决问题 解决思路 解决方法 解决问题 TypeErr ...
- 成功解决TypeError: concat() got an unexpected keyword argument ‘join_axes‘
成功解决TypeError: concat() got an unexpected keyword argument 'join_axes' 目录 解决问题 解决思路 解决方法 解决问题 TypeEr ...
- TensorFlow错误:TypeError: __init__() got an unexpected keyword argument 'serialized_options'
用了好久的时间搞定了机器学习,今天想搞一搞深度学习,用TensorFlow的过程中却遇到了错误: Traceback (most recent call last):File "F:/编程/ ...
- 解决typeError: init() got an unexpected keyword argument ‘serialized_options’
解决typeError: init() got an unexpected keyword argument 'serialized_options' 问题描述:运行python文件时,手贱捣鼓了一下 ...
- 已解决TypeError: __init__() got an unexpected keyword argument ‘n_iterations‘
已解决TypeError: init() got an unexpected keyword argument 'n_iterations' 文章目录 报错问题 解决方法 PS 报错问题 之前在工作中 ...
最新文章
- Markdown文章转化为富文本文章
- 通过onActivityResult()先跳转到联系人界面,然后把传回来的手机号显示到应用的EditText上...
- competition in a limited resource
- CI集成 ckeditor 配置
- (14)Node.js 核心模块—http
- linux线程并不真正并行,多核时代:并行程序设计探讨(3)——Windows和Linux对决(多进程多线程)...
- anr产生的原理如何避免(android)
- 在CentOS6.0 上安装LAMP
- Tracup丨什么是甘特图?关于甘特图的百科全书
- 腾讯微博开放平台API SDK vb版源码发布
- mac php环境一键安装包,XAMPP for Mac 8.0.0 PHP集成环境一键安装包
- python+pyqt4实现QQ自动发送信息
- surface哪些可以升级win11
- 耗时8个小时用纯HTML和CSS写成的学成在线
- ftp服务器的搭建与使用
- http协议各个版本之解说
- DirectDraw学习:第一课
- 兰吉尔FFC3 电表电能量采集终端替代方案(DLMS红外光电采集器)
- 运行错误:view size is not compatible with input tensor‘s size and stride (at least
- 计算机专业免费电子书下载列表List of freely available programming books
热门文章
- java 图片分段上传_java文件分片上传,断点续传
- linear regression
- sprintboot-learn(一)
- 122. Best Time to Buy and Sell Stock II
- gitlab 迁移、升级打怪之路:8.8.5-- 8.10.8 -- 8.17.8 -- 9.5.9 -- 10.1.4 -- 10.2.5
- LVS原理详解及部署之五:LVS+keepalived实现负载均衡高可用
- 亚马逊新品流量是上架开始算吗?
- ArcMap导出属性表为Excel文件
- 住手!!你不需要微服务!
- JVM 最多支持多少个线程?