gpt4 book ai didi

python-2.7 - 运行时错误 : Could not open file caffenet/deploy. prototxt

转载 作者:行者123 更新时间:2023-12-04 00:12:31 26 4
gpt4 key购买 nike

我在 google colab 中遇到这个错误

运行时错误:无法打开文件 caffenet/deploy.prototxt

这是它运行的代码单元

net = caffe.Net("caffenet/deploy.prototxt",
"caffenet/bvlc_reference_caffenet.caffemodel",
caffe.TEST)

已经在这里搜索了解决方案

RuntimeError while opening deploy.prototxt

在这里

RuntimeError while opening deploy.prototxt

但他们并没有解决问题,可能与google colab本身有关

最佳答案

我遇到了同样的问题。我发现我使用了错误的 caffemodel。我使用 !ls 列出了所有文件,它显示了不同的 caffemodels。我之前提到过 735,但它没有这样的文件。 270的除外。更改名称并成功!

关于python-2.7 - 运行时错误 : Could not open file caffenet/deploy. prototxt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51814000/

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