1.下载models:
https://github.com/tensorflow/models/tree/master/object_detection
2.安装包:
pip install pillow
pip install lxml
pip install jupyter
pip install matplotlib
3.编译Protobuf库
3.1 https://github.com/google/protobuf/releases下载xxxx-win32.zip,
3.2 解压到D:\Tensorflow\ObjectDetection目录下,生成:bin, include两个文件夹。
3.3 将bin文件夹中的【protoc.exe】放到C:\Windows\System32文件夹下。
3.4 在D:\Tensorflow\ObjectDetection\models\research文件夹下按住shift点击鼠标右键,打开命令窗口,输入protoc
3.5 Protobuf 编译,用protoc可执行文件编译目录object_detection/protos下的proto文件,生成Python文件。具体参见https://blog.csdn.net/sinat_36965318/article/details/83931965
4.运行官方模型object_detection_tutorial.ipynb文件测试安装成果
参考资料:
Tensorflow Detection Model Zoo