[英]Compiling Protocol Buffers Tensorflow Object Detection API on Windows
I'm brand new to the Windows environment and have spent several hours trying to install Tensorflow with the object detection tutorial. 我是Windows环境的新手,并花了几个小时尝试使用对象检测教程安装Tensorflow。 I've read dozens of threads and seen several videos and have no luck.
我已经阅读了几十个主题,看过几个视频,没有运气。
Here's where I am at: I have all the Tensorflow dependencies installed and the protoc (version 3.7) executable, but when I run the line object_detection/protos/*.proto --python_out=.
这就是我所处的位置:我安装了所有Tensorflow依赖项和protoc(版本3.7)可执行文件,但是当我运行
object_detection/protos/*.proto --python_out=.
I get a no such file or directory
error. 我得到一个
no such file or directory
错误。
Here is what I am running from the command line, from the models directory: 这是我从命令行运行的模型目录:
D:\\training\\Tensorflow\\protoc\\bin\\protoc object_detection/protos/*.proto --python_out=.
I've also tried D:\\training\\Tensorflow\\protoc\\bin\\protoc research/object_detection/protos/*.proto --python_out=.
我也试过
D:\\training\\Tensorflow\\protoc\\bin\\protoc research/object_detection/protos/*.proto --python_out=.
since the path from my current directory (models) to the proto files is research/object_detection/protos/
因为从我当前目录(模型)到proto文件的路径是
research/object_detection/protos/
This thread suggests compiling each .proto file one by one, and after trying to compile the first with D:\\training\\Tensorflow\\protoc\\bin\\protoc research/object_detection/protos/anchor_generator.proto --python_out=.
该线程建议逐个编译每个.proto文件,并在尝试使用
D:\\training\\Tensorflow\\protoc\\bin\\protoc research/object_detection/protos/anchor_generator.proto --python_out=.
编译第一个文件后D:\\training\\Tensorflow\\protoc\\bin\\protoc research/object_detection/protos/anchor_generator.proto --python_out=.
I get this error: 我收到此错误:
object_detection/protos/grid_anchor_generator.proto: File not found.
object_detection/protos/ssd_anchor_generator.proto: File not found.
object_detection/protos/multiscale_anchor_generator.proto: File not found.
research/object_detection/protos/anchor_generator.proto: Import "object_detection/protos/grid_anchor_generator.proto" was not found or had errors.
research/object_detection/protos/anchor_generator.proto: Import "object_detection/protos/ssd_anchor_generator.proto" was not found or had errors.
research/object_detection/protos/anchor_generator.proto: Import "object_detection/protos/multiscale_anchor_generator.proto" was not found or had errors.
research/object_detection/protos/anchor_generator.proto:13:5: "GridAnchorGenerator" is not defined.
research/object_detection/protos/anchor_generator.proto:14:5: "SsdAnchorGenerator" is not defined.
research/object_detection/protos/anchor_generator.proto:15:5: "MultiscaleAnchorGenerator" is not defined.
Those other .proto files are in fact in the same directory, so I'm not sure why it's not finding them. 那些其他的.proto文件实际上在同一个目录中,所以我不确定它为什么找不到它们。
What am I doing wrong? 我究竟做错了什么?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.