Reputation: 69
I would like to fine tune bvlc_reference_caffenet
model on my dataset.
I did the following steps:
I created lmdb files for the new dataset I had.
I downloaded the Pretrained bvlc_reference_caffenet.caffemodel
.
I changed the last layer i.e "fc8"
, fully connected layer:
Took the train_val.prototxt
and changed the last layer "fc8"
to "fc8_tune"
.
I changed num_output
to the right number of output classes trying to predict (i.e 2).
I changed solver.prototxt
according my data
I run
$TOOLS/caffe train --solver=solver.prototxt --weights=bvlc_reference_caffenet.caffemodel
but I got the following error
[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 363:19: String literals cannot cross line boundaries. [libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 363:18: Message type "caffe.LayerParameter" has no field named "fc8_tune". F0531 17:13:33.284981 3670 upgrade_proto.cpp:79] Check failed: ReadProtoFromTextFile(param_file, param) Failed to parse NetParameter file: /caffe-master/models/bvlc_reference_caffenet/train_val.prototxt
can anyone help me in solving this error?
Upvotes: 1
Views: 1933
Reputation: 114786
You forgot to close a quotation mark ("
) in your prototxt
file.
According to the error message
Error parsing text-format caffe.NetParameter: 363:19:
you should look around line number 363.
Upvotes: 2