chapter_5
TensorFlow Object Detection API
安装:
git clone https://github.com/ensorflow/models.git
升级protoc-3.6.1-linux-x86_64.zip
链接: https://pan.baidu.com/s/1hcIc_fePj7pZLYkCTk5EgQ
提取码: 7997
解压之后在命令行输入:
suco cp bin/protoc /usr/bin/protoc
编译protoc文件
protoc object_detection/protos/*.proto --python_out=.
将Slim添加到PYTHONPATH
cd /usr/lib/python3/dist-packages
sudo touch tensorflow_model.pth
sudo vim tensorflow_model.pth
添加model文件夹下的resarch以及research/slim路径
安装完成测试
python3 object_detection/builders/model_builder_test.py
.......
----------------------------------------------------------------------
Ran 7 tests in 0.033s
OK
出现No module named 'nets'或者'No module named 'object_detection',添加路径错误。
网友评论