ubuntu tensorflow 安装 object_detection API

一、安装教程:

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

猜你喜欢

转载自blog.csdn.net/confuciust/article/details/80923566