xialuxi / arcface-caffe

insightface-caffe
MIT License
279 stars 124 forks source link

以前和现在的 cosin_add_m scale 的实现区别是什么昵 #25

Open shiyuanyin opened 5 years ago

shiyuanyin commented 5 years ago

以前的 层,是两个层,一个添加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

xialuxi commented 5 years ago

S值根据学习的参数自动调整

borisgribkov commented 5 years ago

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?