我想使用以下卷积神经网络:
http://lmb.informatik.uni-freiburg.de/people/ronneber/u-net/
与咖啡构建https://github.com/BVLC/caffe/tree/windows
适用于 Windows 10,支持 Visual Studio 2013、CUDA 7.5、cudNN 4 和 python。
现在,当我致电提供的两个网络中的任何一个时
net = caffe.Net('xyz.prototxt', 'xyz.caffemodel', caffe.TEST)
我收到以下错误:
Error parsing text-format caffe.NetParameter: 43:85: Unknown enumeration value of "CROP" for field "type".
网络第 43 行如下所示:
layers { bottom: 'd3c' bottom: 'u3a' top: 'd3cc' name: 'crop_d3c-d3cc' type: CROP }
我在网上查了一下,有些人似乎遇到了同样的错误信息。但是,我找不到任何解决方案。
我现在的问题是:如何摆脱这个错误?
非常感谢帮助!
EDIT:
按照建议更改 .prototxt宋戴尔消除了这个错误,但导致了另一个错误:
[libprotobuf ERROR ..\src\google\protobuf\text_format.cc:274] Error parsing text-format caffe.NetParameter: 10:102: Message type "caffe.LayerParameter" has no field named "blobs_lr".
我通过替换解决了这个问题
blobs_lr: 1 weight_decay: 1 blobs_lr: 2 weight_decay: 0
with
param {lr_mult: 1 decay_mult: 1} param {lr_mult: 2 decay_mult: 0}
在 .prototxt 中,按照建议here.
Thanks!