RuntimeError:无法打开文件caffenet / deploy.prototxt

问题描述 投票:3回答:1

我在Google Colab中收到此错误

RuntimeError:无法打开文件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本身有关

python-2.7 caffe google-colaboratory
1个回答
0
投票
我遇到了同样的问题。我发现我使用了错误的caffemodel。我使用!ls列出了所有文件,它显示了不同的caffemodel。我之前提到过735,但没有此类文件。除了270个。更改名称即可使用!
© www.soinside.com 2019 - 2024. All rights reserved.