简体   繁体   English

在Windows上编译协议缓冲区Tensorflow对象检测API

[英]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? 我究竟做错了什么?

You should run the command from research directory. 您应该从research目录运行该命令。 As specified here . 如此处所述

# From tensorflow/models/research/
D:\training\Tensorflow\protoc\bin\protoc object_detection/protos/*.proto --python_out=.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Windows上的tensorflow对象检测API错误 - tensorflow object detection API Error at windows 无法在Windows上运行Tensorflow对象检测API - Fail to run tensorflow object detection api on windows Best TensorFlow version & Object Detection API version for Object Detection in Windows - Best TensorFlow version & Object Detection API version for Object Detection in Windows Windows上具有GPU的Tensorflow对象检测API和实时检测 - Tensorflow Object Detection API with GPU on Windows and real-time detection Windows 上的 Tensorflow 对象检测 API - ImportError:没有名为“object_detection.utils”的模块; “object_detection”不是一个包 - Tensorflow Object Detection API on Windows - ImportError: No module named "object_detection.utils"; "object_detection" is not a package Windows上的Tensorflow对象检测API - 错误“ModuleNotFoundError:没有名为'utils'的模块” - Tensorflow Object Detection API on Windows - error “ModuleNotFoundError: No module named 'utils'” 在Windows中导出等效项以使用Tensorflow对象检测API - Export equivalent in windows for using Tensorflow object Detection API 在 Windows 11 上安装 tensorflow 对象检测 API,卡在安装 pycocotools - Installing tensorflow object detection API on Windows 11, stuck on installation of pycocotools Tensorflow对象检测Api的准确率 - Accuracy of Tensorflow object detection Api TensorFlow对象检测API错误 - TensorFlow Object Detection API error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM