OpenVINO开发小组
直播中

刘悌耀

7年用户 1048经验值
私信 关注
[问答]

在DL Workbench 2022.1中转换模型时遇到的错误问题

在 DL Workbench 2022.1 中转换模型时遇到错误:
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1. Downgrade the protobuf package to 3.20.x or lower.
2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTAtiON=python (but this will use pure-Python parsing and will be much slower).
More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
   

回帖(1)

文汝寒

2023-8-15 09:34:51
 解决方法 
       Protobuf 版本 4.21.0 因破坏多个库(包括 TensorFlow 库)而报告,且需要限制为低版本。

举报

更多回帖

发帖
×
20
完善资料,
赚取积分