I want to use the following convolutional neural network:
http://lmb.informatik.uni-freiburg.de/people/ronneber/u-net/
with caffe built from https://github.com/BVLC/caffe/tree/windows
for windows 10 with visual studio 2013, CUDA 7.5, cudNN 4 and python support.
Now, when i call either of the two networks supplied with
net = caffe.Net('xyz.prototxt', 'xyz.caffemodel', caffe.TEST)
I get the following error:
Error parsing text-format caffe.NetParameter: 43:85: Unknown enumeration value of "CROP" for field "type".
Line 43 of the network looks as follows:
layers { bottom: 'd3c' bottom: 'u3a' top: 'd3cc' name: 'crop_d3c-d3cc' type: CROP }
I have looked online and some people seem to encounter the same error message. I could not find any solutions, however.
My question now is: how do I get rid of this error?
Help is greatly appreciated!
EDIT:
Changing the .prototxt as suggested by Dale Song eliminated this error, but led to another one:
[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".
I fixed this by replacing
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}
in the .prototxt, as suggested here.
Thanks!