Closed bilibilikanpei closed 2 months ago
f*ck, this is a fool issue. this condition is same with "ImportError: cannot import name 'builder' from 'google.protobuf.internal'".
I've just noticed that object_detection packages are not downloaded over the web, but rather parts of the code are generated locally and then built. By searching globally for problematic import statements, I noticed that they were all on the new green file, so the problem could be in the local generation step. The highest version of protobuf I initially installed, version 27, worked fine in version 3.18.1 after repeated degradation tests. Finally, you can pass the test
This should be added to note
Excuse me, can you tell me a little more about how you solved it?
Hi, how did you solve this issue?
@geoalex91
This is the environment I set up for learning. It may be helpful for you to refer to it. I installed protobuf version 3.19.6in a new virtual environment and set the path to Protocol Buffers 22.0.
Can you tell me how to solve it?
@caoduythanh1997 After installing Protocol Buffer version 22.0, follow the solution with the most votes at the address below. https://stackoverflow.com/questions/71759248/importerror-cannot-import-name-builder-from-google-protobuf-internal
Prerequisites
Please answer the following question for yourself before submitting an issue.
1. The entire URL of the documentation with the issue
https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/tf2.md
2. Describe the issue
windows10 python 3.8.6 and 3.9.13
I followed the steps above An error occurred in this step
python object_detection/builders/model_builder_tf2_test.py
so i upgrade protobuf, but
and retry
how to fix this?