ubuntu tensorflow 安裝 object_detection API
阿新 • • 發佈:2018-12-25
一、安裝教程:
https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/installation.md
二、具體步驟:
1. https://github.com/tensorflow/models
下載model-master
2. 安裝protobuf,編譯.proto檔案
# From tensorflow/models/research/
protoc object_detection/protos/*.proto –python_out=.
3.新增research和slim路徑到PYTHONPATH
使用指令開啟bashrc:
sudo vim ~/.bashrc
‘++++++++++++++++++++++++++++++++++++++++++’
From tensorflow/models/research/
export PYTHONPATH=$PYTHONPATH:pwd
:pwd
/slim
4.測試object_detection API
python object_detection/builders/model_builder_test.py
‘—————————————————————————’
Ran 15 tests in 0.039s
OK