目标物识别object_detection一:准备工作

参考文献:1.https://blog.csdn.net/c2a2o2/article/details/78447784玩具检测器
2.https://blog.csdn.net/chenmaolin88/article/details/79357263用TensorFlow训练一个物体检测器(手把手教学版)
3.https://blog.csdn.net/lgczym/article/details/79272579用slim的方法
4.https://blog.csdn.net/chenmaolin88/article/details/79371891Ubuntu 16.04下安装TensorFlow Object Detection API(对象检测API)
5.https://www.cnblogs.com/qcloud1001/p/7677661.html深度学习入门篇--手把手教你用 TensorFlow 训练模型
使用物体识别需要安装:
参考文献5所述:tensorflow API使用protobuf来配置模型和训练参数,所以API正常使用必须先编译protobuf库,遇到找不到*.proto文件的报错,把protoc.exe放到models/object_detection目录下,重新执行应该就可以了。

Protobuf(我安装了protoc-3.7.0-win64) 和slim(github上的TensorFlow/models库中有slim文件夹,把整个models下载下来备用)。
在这里插入图片描述
protoc的作用是把object_detection\protos文件夹里的所有proto文件转成.py文件,我转过的如下图:
在这里插入图片描述

slim在mdels里的research文件夹中:
在这里插入图片描述
slim文件夹展开如下,windows下用下图中的setup.py,安装即可。
在这里插入图片描述
windows环境下安装以及可能遇到的问题解决,如下图:
在这里插入图片描述

linux下用export 配置环境即可,如下图:
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_44345862/article/details/88622092