tensorflow object_detection 安装

在ubuntu 16.04下 .

sudo apt-get install protobuf-compiler python-pil python-lxml python-tk
pip install --user Cython
pip install --user contextlib2
pip install --user jupyter
pip install --user matplotlib

这些装好后装cocoapi
在 tensorflow/models/reaearch 下在终端输入
git clone https://github.com/cocodataset/cocoapi.git
cd cocoapi/PythonAPI
激活你的环境 source activate tensorflow
make
make install
这会将pycocotools 安装到sitepackges 下

From tensorflow/models/research/
protoc object_detection/protos/*.proto --python_out=.

wget -O protobuf.zip https://github.com/google/protobuf/releases/download/v3.0.0/protoc-3.0.0-linux-x86_64.zip
unzip protobuf.zip
./bin/protoc object_detection/protos/*.proto --python_out=.
export PYTHONPATH=$PYTHONPATH:pwd:pwd/slim
python object_detection/builders/model_builder_test.py最后效果就是这样子。

你可能感兴趣的:(tensorflow,api)