본문 바로가기
Language/python

[에러] 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.

by _YUJIN_ 2023. 7. 11.

detectron2 모델을 학습하다가 에러가 발생

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).

 

해결 방법 : 라이브러리 재설치

pip install protobuf==3.20.
반응형