【问题标题】:How to convert .caffemodel into .mat format如何将 .caffemodel 转换为 .mat 格式
【发布时间】: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


【解决方案1】:

基本上,错误消息表明 prototxt 文件中不存在名为 layer 的字段。这可能是一个错字。检查第8行第1列的prototxt文件。我的猜测是该字段的名称应该是layers。

祝你好运!

【讨论】:

    猜你喜欢
    • 2016-10-28
    • 1970-01-01
    • 2018-07-13
    • 2017-05-28
    • 1970-01-01
    • 2015-10-27
    • 2021-07-09
    • 2018-06-22
    • 1970-01-01
    相关资源
    最近更新 更多