github hosts Update (non-essential)
- 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
- Network Service Restart
sudo /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)