本次安装环境为 ubuntu-16.04.4系统,使用环境python3,因为之前已经安装了gpu版本的tensorflow和opencv等,所以不在安装.
1,在主目录下载api, git clone https://github.com/tensorflow/models.git(下载完后的路径为/home/user/models)
2,sudo apt-get install protobuf-compiler python-pil python-lxml python-tk
3,pip3 install --user contextlib2(安装其他必要的软件)
4,安装cocoapi(参考我上一篇博客安装,很简单的,安装在主目录就行,安装后路径为/home/user/cocoapi)
5,进入/home/user/models/research/目录, 执行cp -r /home/user/cocoapi/PythonAPI/pycocotools ./ (拷贝/home/user/cocoapi/PythonAPI目录到第一步下载的/home/user/models/research/目录下)
6,在models/research/目录下执行protoc object_detection/protos