TensorFlow.ZC尝试
1、资料:
https://github.com/protocolbuffers/protobuf/releases
https://pythonprogramming.net/introduction-use-tensorflow-object-detection-api-tutorial/
2、教程中的命令:“"C:/Program Files/protoc/bin/protoc" object_detection/protos/*.proto --python_out=.”,做到这里的时候,我的命令始终不对,查了一些资料才弄对...
资料:度娘搜索:“File does not reside within any path specified using --proto_path (or -I).”
File does not reside within any path specified ... - 简书.html(https://www.jianshu.com/p/42a480a45cd6)
protocol buffers - protobuf_ .proto file not under source directory - Stack Overflow.html(https://stackoverflow.com/questions/47861543/protobuf-proto-file-not-under-source-directory)
2.1、尝试到如下的命令时才算 OK...:
protoc "object_detection/protos/anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
ZC:但是 发现,不能用 类似"*.proto"的用法,需要 所有文件一个一个的执行该命令:(31个文件 对应 31条命令)
protoc "object_detection/protos/anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/argmax_matcher.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/bipartite_matcher.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/box_coder.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/box_predictor.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/calibration.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/eval.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/faster_rcnn.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/faster_rcnn_box_coder.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/flexible_grid_anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/graph_rewriter.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/grid_anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/hyperparams.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/image_resizer.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/input_reader.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/keypoint_box_coder.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/losses.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/matcher.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/mean_stddev_box_coder.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/model.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/multiscale_anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/optimizer.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/pipeline.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/post_processing.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/preprocessor.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/region_similarity_calculator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/square_box_coder.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/ssd.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/ssd_anchor_generator.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/string_int_label_map.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
protoc "object_detection/protos/train.proto" --python_out="G:/Tensorflow/models_copy/research/python_out_z" --proto_path="G:/Tensorflow/models_copy/research/" -I="G:\Tensorflow\protoc\protoc-3.9.0-win64\include"
3、
4、
5、
6、
7、
8、
9、Win7配置和运行TensorFlow_Object_Detection_API步骤 - 殊彦的采坑记录 - CSDN博客.html(https://blog.csdn.net/qq_29075459/article/details/78562581)
Windows安装Tensorflow步骤 - 殊彦的采坑记录 - CSDN博客.html(https://blog.csdn.net/qq_29075459/article/details/78537532)
10、Windows下用pip安装CPU版TensorFlow - haibinwan1024的博客 - CSDN博客.html(https://blog.csdn.net/haibinwan1024/article/details/83188058)
ZC:这里 提到 官方文档 的链接
Tensorflow object_detection API 目标检测环境搭建 - zhaoyoulin2016的博客 - CSDN博客.html(https://blog.csdn.net/zhaoyoulin2016/article/details/80615687)
ZC:这里提到 中文社区的 链接 (ZC:但是 貌似没有Windows的教程...)
11、ZC:遇到的 tensorflow_tensorboard版本太高的问题,我的处理方式是 使用命令“pip uninstall tensorflow-tensorboard”和“pip uninstall tensorboard”将它们都卸载掉,然后再用命令 “pip uninstall tensorflow-tensorboard”来安装 tensorflow需要的tensorboard...
12、
13、20190722 SHH Win7x64成功
同样的 python3.7.4,基本都是一样的设置...
(1)下面的命令是CMD在路径"G:\TensorFlow_ZZ\models_copy\research"中执行的(我是用的 管理员的CMD)
ZC:经测试 bat中 默认一行就是 一条命令,∴可以将下面的 31个转换语句放到一个bat文件中 来执行
protoc "object_detection/protos/anchor_generator.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/argmax_matcher.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/bipartite_matcher.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/box_coder.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/box_predictor.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/calibration.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/eval.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/faster_rcnn.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/faster_rcnn_box_coder.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/flexible_grid_anchor_generator.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/graph_rewriter.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/grid_anchor_generator.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/hyperparams.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/image_resizer.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/input_reader.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/keypoint_box_coder.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/losses.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/matcher.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/mean_stddev_box_coder.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/model.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/multiscale_anchor_generator.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/optimizer.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/pipeline.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/post_processing.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/preprocessor.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/region_similarity_calculator.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/square_box_coder.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/ssd.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/ssd_anchor_generator.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/string_int_label_map.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include"
protoc "object_detection/protos/train.proto" --python_out="." --proto_path="G:/Tensorflow_ZZ/models_copy/research/" -I="G:/Tensorflow_ZZ/protoc-3.9.0-win64/include" ZC: 生成的文件 位于"G:\TensorFlow_ZZ\models_copy\research\object_detection\protos\"下,????__pb2.py
(2)在下载 ssd_mobilenet_v1_coco_2017_11_17.tar.gz 时卡住了,手动下载的,然后放在 文件夹"G:\TensorFlow_ZZ\models_copy\research\object_detection"中(此时 发现 代码"object_detection_tutorial.ipynb"下载的该文件就是在此路径的 但是下载不完全[下载很慢])
(3)资料
A、tensorflow开源Tensorflow Object Detection API安装运行测试 - HMW的博客 - CSDN博客.html(https://blog.csdn.net/weixin_35654926/article/details/75452450)
ZC:这是在找 为什么下载会 timeout的原因时找到的文章,里面 也有 如何修改代码的部分(主要就是 注释掉“opener.retrieve(DOWNLOAD_BASE + MODEL_FILE, MODEL_FILE)”)
B、Win10 tensorflow object_detection api 安装中 无法显示图像的问题解决 - weixin_43345331的博客 - CSDN博客.html(https://blog.csdn.net/weixin_43345331/article/details/87924551)
ZC:这是我的 object_detection_tutorial.ipynb 运行之后 没有图片显示出来,找到的这文章,里面有一些处理方式,也有迂回的 不显示图片 而是改成 保存图片的方式...
14、
15、
TensorFlow.ZC尝试的更多相关文章
- 【TensorFlow探索之一】MNIST的初步尝试
最近在学习TensorFlow,尝试的第一个项目是MNIST.首先给出源码地址. 1 数据集的获取 我们可以直接运行下面的代码,来获取到MNIST的数据集. from tensorflow.examp ...
- Linux(Red hat)无网离线安装TensorFlow
文件下载 首先,下载想要安装的版本,目前最新的是1.8.0 根据你的python版本下载对应的whl文件,下载连接:https://pypi.org/project/tensorflow/#files ...
- Tensorflow 2.x入门教程
前言 至于为什么写这个教程,首先是为了自己学习做个记录,其次是因为Tensorflow的API写的很好,但是他的教程写的太乱了,不适合新手学习.tensorflow 1 和tensorflow 2 有 ...
- libxml2的xpath检索中文
ZC: xmlXPathEvalExpression(...) 当 xpath的字符串中 包含中文的时候,返回NULL,暂时不知道该怎么处理了... ZC: 下面是测试的一些代码/文件,留着以后再研究 ...
- 『cs231n』卷积神经网络工程实践技巧_上
概述 数据增强 思路:在训练的时候引入干扰,在测试的时候避免干扰. 翻转图片增强数据. 随机裁切图片后调整大小用于训练,测试时先图像金字塔制作不同尺寸,然后对每个尺寸在固定位置裁切固定大小进入训练,最 ...
- SSD-2(代码部分介绍)
single shot multibox detectior tensorflow 代码 一.SSD重要参数设置 在ssd_vgg_300.py文件中初始化重要的网络参数,主要有用于生成默认框的特征层 ...
- 适用于Linux 2的Windows子系统上的CUDA
适用于Linux 2的Windows子系统上的CUDA Announcing CUDA on Windows Subsystem for Linux 2 为了响应大众的需求,微软在2020年5月的构建 ...
- 尝试在tensorflow上运行facenet
上一篇装好了tensorflow的运行环境,开始尝试运行一些实例代码,在github上找到了一个tensorflow实现的facenet的代码,还是遇到了很多坑! 坚持看完,有重要总结! 代码:htt ...
- TensorFlow实现Softmax Regression识别手写数字中"TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败”问题
出现问题: 在使用TensorFlow实现MNIST手写数字识别时,出现"TimeoutError: [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应 ...
随机推荐
- Django REST framework+Vue 打造生鲜电商项目(笔记二)
(转自https://www.cnblogs.com/derek1184405959/p/8768059.html)(有修改) 接下来开始引入django resfulframework,体现它的强大 ...
- 1、课程简介-Spring 注解驱动开发
1.课程简介-Spring 注解驱动开发
- linux笔试题
1. cron 后台常驻程序 (daemon) 用于: A. 负责文件在网络中的共享 B. 管理打印子系统 C. 跟踪管理系统信息和错误 D. 管理系统日常任务的调度 2. 在大多数Linux发行版本 ...
- Codeforces 1243 D 0-1 MST
题面 隐隐感觉N年前做过一道类似的题. 很显然我们只需要考虑,仅有0边的子图有多少个连通块,然后这个数量减去1就是答案了(这个和kruscal过程等价). 然后其实就是妥妥的暴力了...因为1边数量非 ...
- Til the Cows Come Home ( POJ 2387) (简单最短路 Dijkstra)
problem Bessie is out in the field and wants to get back to the barn to get as much sleep as possibl ...
- Spring事务管理的一些注意点
在<Spring Boot事务管理(下)>中,已经介绍了如果在 protected.private 或者默认可见性的方法上使用@Transactional,事务将是摆设,也不会抛出任何异常 ...
- Mapreduce-实现webcount代码
参考博文:https://blog.csdn.net/qq_41035588/article/details/90514824 首先安装一个Hadoop-Eclipse-Plugin 方便来对于hdf ...
- Robot Framework(十五) 扩展RobotFramework框架——远程库接口
4.2远程库接口 远程库接口提供了在运行Robot Framework本身的机器上运行测试库的方法,以及使用除本机支持的Python和Java之外的其他语言实现库的方法.对于测试库,用户远程库看起来与 ...
- win10+mysql8.0安装
一.下载 mysql8.0 windows zip包下载地址: https://dev.mysql.com/downloads/mysql/ 1540951981(1).png 二.安装 1.解压 ...
- dubbo 初识(1)
参考dubbo 中文官方文档:http://dubbo.apache.org/zh-cn/docs/user/preface/architecture.html 分布式架构的发展过程 1.初始小型的项 ...