I have skimmed through the internet for a couple of days but found no working solution for this problem. I'm training an image dataset using the Tensorflow Object Detection API on the GCloud. My job keeps failing, citing this error. I have the latest protobuf version installed, I have performed this code as well (proposed as a soluiton in some cases):
protoc object_detection/protos/*.proto --python_out=.
I've done everything as instructed but my job keeps failing.
This is the error log in detail:
Traceback (most recent call last): File "/usr/lib/python2.7/runpy.py",
line 174, in _run_module_as_main "__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code exec code in
run_globals File "/root/.local/lib/python2.7/site-
packages/object_detection/train.py", line 49, in <module> from
object_detection import trainer File "/root/.local/lib/python2.7/site-
packages/object_detection/trainer.py", line 27, in <module> from
object_detection.builders import preprocessor_builder File
"/root/.local/lib/python2.7/site-
packages/object_detection/builders/preprocessor_builder.py", line 21,
in <module> from object_detection.protos import preprocessor_pb2
ImportError: cannot import name preprocessor_pb2
Update: I performed the same procedure, with the same packages to train the data locally on my CPU and it worked without any errors. So maybe it is a problem with GCloud.