when i am setting for tensorflow object detection API, while i am running this instruction for testing setup
object_detection/builders/model_builder_tf2_test.py
i am getting this error-
ImportError: cannot import name ‘runtime_version’ from ‘google.protobuf’ (C:\Anaconda3\envs\tfod\lib\site-packages\google\protobuf_init _.py)
Drar friends please help how to solve this
1 Like
If you are using the lastest version of protobuf, try installing an earlier version of protobuf.
For my object detection project version 3.12.3 is working fine.
You can get it here: Releases · protocolbuffers/protobuf · GitHub
RayAp23
November 27, 2024, 2:46am
5
Hi all,
I am facing the same issue. I am running on a win 11 machine.
I am following the instructions on
https://tensorflow-object-detection-api-tutorial.readthedocs.io/en/latest/install.html
However, when I run the test script
python object_detection/builders/model_builder_tf2_test.py
I got the following error:
ImportError: cannot import name ‘runtime_version’ from ‘google.protobuf’
my current configuration:
pip show protobuf
Name: protobuf
Version: 3.19.6
I downloaded protoc-3.12.3-win64 and copied the bin and include folders into my C:\Program Files\Google Protobuf
my environment path contains C:\Program Files\Google Protobuf\bin
when I ran
protoc object_detection/protos/*.proto --python_out=.
I did not get any error.
Do let me know what else I need to do to get the system running.