在配置Google Tensorflow Object Detection API 时需要编译proto文件,从官网下载protoc-3.6.1-win32,解压后将bin文件夹中的protoc.exe路径添加到电脑的环境变量中的path中,进入models/research路径在运行教程给出的以下命令时报错:
protoc object_detection/protos/*.proto --python_out=.
object_detection/protos/*.proto: No such file or directory
解决方案:
在models/research文件中使用shift+右键的powershell命令并运行以下语句使.proto文件全部编译
Get-ChildItem object_detection/protos/*.proto |Resolve-Path -Relative | %{protoc $_ --python_out=.}