FaceVerification icon indicating copy to clipboard operation
FaceVerification copied to clipboard

About the label

Open haiziheyu opened this issue 9 years ago • 3 comments

Hi, I am puzzled with the "label1" of the layer "pair_data1" and "label2" of the layer "pair_data2". Are the "label1" and "label2" mean class label? Aren't the "same/different" labels need to be generated for each pair before training? Thanks.

haiziheyu avatar May 25 '16 05:05 haiziheyu

All labels are class label, say 0-10574 for CASIA-webface.

happynear avatar May 25 '16 07:05 happynear

@happynear Thank you for your reply! But when do the 0/1 (i.e. different/same) labels be generated for each pair?

haiziheyu avatar May 25 '16 07:05 haiziheyu

By using a modified contrastive loss layer, there is no need to create the different/same label.

https://github.com/happynear/caffe-windows/blob/master/src/caffe/layers/contrastive_loss_layer.cpp

happynear avatar May 25 '16 12:05 happynear