关于protobuf报错: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.
在处理数据集训练神经网路时,运到protoc版本相关的报错,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.
解决方法:将protobuf 4.21.1版本降级到3.20.x,通常即可解决问题。
pip3 install --upgrade protobuf==3.20.1