gpt4 book ai didi

python - tensorflow Protobuf 编译问题

转载 作者:行者123 更新时间:2023-11-28 18:19:32 35 4
gpt4 key购买 nike

我想为谷歌对象检测 API 编译 protobuf 库。我按照官方教程输入了protoc object_detection/protos/*.proto --python_out=.。然后我得到的是“object_detection/protos/*.proto: Invalid argument”。谁能告诉我该怎么办?谢谢!

最佳答案

如果您的操作系统是 Windows,则 *.可能不起作用。解决这个问题的一个好方法是使用 bash。下载 git for windows ,安装时不要忘记选择git bash。在 tensorflow/models/research/中,右键单击,选择 git bash,然后粘贴命令,它在我的笔记本电脑上运行良好。

关于python - tensorflow Protobuf 编译问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46038904/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com