Based tensorflow tensorflow1.13.1 installation of objectdetction Api

github hosts Update (non-essential)

  1. Adding hosts sudo gedit /etc/hosts
    to add the following information at the end of the text, which ip address change at any time, look at the following website http://tool.chinaz.com/
52.74.223.119 github.com 
69.171.235.16 github.global.ssl.fastly.net
  1. Network Service Restartsudo /etc/init.d/networking restart

Installation dependencies

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

jupyter * * matplotlib these two modules have been installed.

Github zip file download

https://github.com/tensorflow/models
unzip the folder on the home ~

COCO ApI installation

cd cocoapi/PythonAPI
git clone https://github.com/cocodataset/cocoapi.git
cd cocoapi/PythonAPI
make
cp -r pycocotools ~/tensorflow/models/research/

Protobuf compilation

cd ~/tensorflow/models/research
# From tensorflow/models/research/
protoc object_detection/protos/*.proto --python_out=.
sudo python setup.py install
cd ~/tensorflow/models/research/slim
sudo python setup.py install

test

python object_detection/builders/model_builder_test.py

The results are shown below success:

.............s...
----------------------------------------------------------------------
Ran 17 tests in 0.066s

OK (skipped=1)

Published 36 original articles · won praise 0 · views 20000 +

Guess you like

Origin blog.csdn.net/weixin_38102912/article/details/103228276