train datasets not valid: 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 2023-04-20 18:34:06,539 - [ERROR]: failed: TrainFailReason.ERROR_PARAM, datasets not valid: 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 Exception ignored in: <function Detector.__del__ at 0x7fa39ff51550> Traceback (most recent call last): File "/home/zzh/Desktop/maix_train/train/detector/__init__.py", line 117, in __del__ if self.need_rm_datasets: AttributeError: 'Detector' object has no attribute 'need_rm_datasets'
时间: 2023-06-08 19:04:53 浏览: 304
训练数据集无效:不能直接创建描述符。如果这个调用来自一个_pb2.py文件,你的生成代码已经过期,必须使用protoc >= 3.19.0重新生成。如果你无法立即重新生成你的protos,一些可能的解决方法是:1.将protobuf软件包降级到3.20.x或更低版本。2.设置PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python(但这将使用纯Python解析,速度会慢得多)。更多信息请参见:https://developers.google.com/protocol-buffers/docs/news/2022-05-06。
阅读全文