安装Google Object Detection API
生活随笔
收集整理的這篇文章主要介紹了
安装Google Object Detection API
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
前提條件
已安裝python,建議采用VirtualEnv或者Anaconda
安裝TensorFlow 1.x
python和tensorflow的安裝見(jiàn)相關(guān)文檔 https://www.tensorflow.org/install/
安裝pillow, jupyter, matplotlib, lxml,通過(guò)pip完成安裝
下載源代碼
git clone?https://github.com/tensorflow/models.git
編譯Protobuf文件,生成py
Tensorflow Object Detection API使用protobuf配置模型和訓(xùn)練參數(shù),所以使用之前首先需要編譯proto文件生成py文件。
protoc *.proto --python_out=.
添加環(huán)境變量PYTHONPATH
測(cè)試是否已經(jīng)正確安裝Object Detection.
測(cè)試結(jié)果表明安裝成功。
總結(jié)
以上是生活随笔為你收集整理的安装Google Object Detection API的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Jupyter notebook imp
- 下一篇: 测试TensorFlow Object