Open shiyuanyin opened 5 years ago
S值根据学习的参数自动调整
Hi @xialuxi first of all thanks for your code, I found that ArcFace caffe version is very useful and now is looking at AdaCos. As it seems for me, your version and published version are a bit different. Paper authors removed M parameter and made S adjustable ( or it can be determined ). In your code S is also adjustable but M is still present. Could you please comment this?
以前的 层,是两个层,一个添加m角度,一个添加尺度64或者128 然后新的arcface合并只有一层, 没有scale 参数设置的值,但是这里和上面的实现的区别在哪里昵 layer { name: "cosin_add_m" type: "CosinAddm" bottom: "temp_fc6" bottom: "label" top: "fc6_margin" cosin_add_m_param { m: 0.5 } } layer { name: "fc6_margin_scale" type: "Scale" bottom: "fc6_margin" top: "fc6_margin_scale" param { lr_mult: 0 decay_mult: 0 } scale_param { filler{ type: "constant" value: 64 } }
修改过后的addm 层 layer { name: "adacos_add_m_scale" type: "AdaCosAddmScale" bottom: "fc6" bottom: "label" top: "fc6_margin_scale" adacos_add_m_scale_param { m: 0.5 num_classes: 10575 } }
@xialuxi