首页 > 解决方案 > 如何修复 Import object_detection/protos/image_resizer.proto 但未使用

问题描述

当我尝试编译 Protobuf 以使用 TensorFlow 对象检测 API 时遇到问题。

我正在关注本教程:https ://github.com/Khaivdo/How-to-train-an-Object-Detector-using-Tensorflow-API-on-Ubuntu-16.04-GPU

在命令行中,我尝试启动此命令(教程链接中的 1.4.2 Compile Protobuf):

# From ObjectDetection/models/research/
protoc object_detection/protos/*.proto --python_out=.

我得到了这个错误:

object_detection/protos/input_reader.proto: warning: Import object_detection/protos/image_resizer.proto but not used.

我该如何解决?

标签: pythontensorflowcomputer-visionobject-detection-apiprotobuf-python

解决方案


正如这个问题所说,这只是一个内部警告(不是错误),它不应该打扰你。你可以跟随你的执行。


推荐阅读