How do I specify shared weights and lr_mult when using V1LayerParameters?

99 views
Skip to first unread message

Abhimanyu Dubey

unread,
Aug 19, 2015, 11:03:28 AM8/19/15
to Caffe Users
I'm trying to train a siamese net using the V1LayerParameter proto format. I get this error:

[libprotobuf ERROR google/protobuf/text_format.cc:245] Error parsing text-format caffe.NetParameter: 24:9: Expected ":", found "{".

I have this as the prototxt:

layers { bottom: 'data1' top: 'conv1' name: 'conv1' type: CONVOLUTION
  blobs_lr: 1 blobs_lr: 2 weight_decay: 1 weight_decay: 0
  param { name: 'conv1w' lr_mult: 1 }
  param { name: 'conv1b' lr_mult: 2 }
  convolution_param { engine: CAFFE num_output: 96 pad: 0 kernel_size: 11 stride: 4 weight_filler { type: 'gaussian' std: 0.01 } bias_filler { type: 'constant' value: 0 } } }

How do I set the name and lr_mult in the V1LayerParameters?
Reply all
Reply to author
Forward
0 new messages