I\'m attempting to get the TensorFlow Object Detection API
https://github.com/tensorflow/models/tree/master/research/object_detection
working on Windows by f
Make sure you have a __init__.py
file in your research/object_detection/protos folder! The __init__.py
file is empty but needs to exist for the protos module to be created correctly.
As mentioned in the comment, utils
is a submodule so you actually need to add object_detection
to PYTHONPATH
, not object_detection/utils
.
I'm glad it worked for you.
cd Research/Object_Detection
cd ..
Research
RESEARCH
RESEARCH
3.export PYTHONPATH=$PYTHONPATH:pwd
:pwd
/slim
4.protoc object_detection/protos/string_int_label_map.proto --python_out=.
CD OBJECT_DETECTION
6.jupyter notebook
The following command does not work on Windows:
export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim
Instead, I followed the directions of this tutorial, which recommends setting the path variables for three different directories manually. I simply added a path for the utils directory as well. So far it has worked without error.