【发布时间】:2017-02-20 05:59:26
【问题描述】:
我想在 matconvnet 中使用我经过微调的 caffe 模型进行进一步处理。但是 Andrea vedaldi 提供的脚本在 https://github.com/vlfeat/matconvnet/blob/master/utils/import-caffe.py 留下以下我无法修复的错误:
google.protobuf.text_format.ParseError: 8:1 : 消息类型“caffe.NetParameter”没有名为“layer”的字段。
当我在 import-caffe.py 的参数中包含我的 caffe.proto 文件时,它会留下以下错误
google.protobuf.text_format.ParseError: 8:1 : 消息类型“caffe.NetParameter”没有名为“layer”的字段。
如果有研究人员已经解决了这个问题,我将不胜感激。
提前致谢 塔伦
【问题讨论】:
-
你在使用什么
caffe-variant参数? -
我已将参数传递为 --caffe-variant=caffe。 caffe.proto 文件位于链接drive.google.com/file/d/0B2a8WzvR-lOxbXBNd2NXVERYS2c/…
-
试试
caffe-old你会得到什么? -
我忘记包含我现在所做的 output type= simplenn 参数,并且无论 --caffe-variant 选择了 caffe 还是 caffe-old,我都会在下面发布一个不同的错误我得到相同的错误加载../face_full_conv.prototxt 从 ../face_full_conv.caffemodel 加载 Caffe CNN 参数 转换 0 层 输入图像数据张量形状:Traceback(最近一次调用最后):文件“/home/tharun/matconvnet/matconvnet-1.0-beta23/utils /import-caffe.py", line 776, in
print "Input image data tensor shape:", dataShape NameError: name 'dataShape' is not defined -
请format您的问题。
标签: deep-learning caffe matconvnet