解决:"object_detection/protos/*.proto: Invalid argument".

解决:"object_detection/protos/*.proto: Invalid argument". 

      在windows中配置TensorFlow的object_detection模块时,需要利用protoc生成anchor_generator_pb2.py等多个文件,其命令是:

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

     该命令在Linux系统是没有问题的,但在Windows 却报错:"object_detection/protos/*.proto: Invalid argument". ,后来发现是“*.”在windows系统是无法识别的,解决的方法是,使用git命令,不要用CMD命令,当然这需要你Windows系统安装了git了,Git for Windows下载地址:https://git-scm.com/download/win,安装完后,使用git命令重试protoc object_detection/protos/*.proto --python_out=. 就没有问题啦




在《windows中配置TensorFlow的object_detection模块》:

【1】https://blog.csdn.net/zlase/article/details/78734138
【2】https://blog.csdn.net/Zlase/article/details/78734138
【3】https://blog.csdn.net/xinyu3307/article/details/77104388

猜你喜欢

转载自blog.csdn.net/guyuealian/article/details/80546236