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] 由于连接方在一段时间后没有正确答复或连接的主机没有反应 ...
随机推荐
- C# ClickOnce发布方式
首先编写ClickOnce更新事件, private void button1_Click(object sender, EventArgs e) { if (ApplicationDeploymen ...
- Educational Codeforces Round 74 (Rated for Div. 2) D. AB-string
链接: https://codeforces.com/contest/1238/problem/D 题意: The string t1t2-tk is good if each letter of t ...
- Codeforces Round #584 E2. Rotate Columns (hard version)
链接: https://codeforces.com/contest/1209/problem/E2 题意: This is a harder version of the problem. The ...
- dubbo配置文件
<dubbo:service/> 服务配置,用于暴露一个服务,定义服务的元信息,一个服务可以用多个协议暴露,一个服务也可以注册到多个注册中心.<dubbo:reference/> ...
- HTML5 本地数据库(SQLite) 示例
http://supercharles888.blog.51cto.com/609344/856071 http://www.sqlite.org/download.html
- @Async 异步注释 @EnableAsync
@SpringBootApplication @ComponentScan(basePackages = "com.fddsfsg") //@EnableSwagger2 @Ena ...
- [Luogu] 程序自动分析
题面:https://www.luogu.org/problemnew/show/P1955 题解:https://www.zybuluo.com/wsndy-xx/note/1143858
- 报错 One or more constraints have not been satisfied.
常出现在导入已有标签时. 需要在<build/><plugins/>里面追加标签 <plugin> <groupId>org.apache.maven. ...
- codeforces#101194H. Great Cells(数学)
题目链接: https://codeforces.com/gym/101194 题意: 在$n×m$的各自中填上$1$到$k$的数 定义Greate cell为严格大于同行和同列的格子 定义$A_g$ ...
- win10系统在执行“ vagrant box add centos7 vagrant-centos-7.box”添加box时,报错“Vagrant failed to initialize at a very early stage: Failed to locate the powershell executable on the available PATH. ”
这个意思是:在有效的路径中未能执行PowerShell命令. 请检查PowerShell的安装和有效的路径,然后再尝试重新运行这个命令. 在环境变量path中添加powershell的路径,例如:C: ...