leondgarse / Keras_insightface

Insightface Keras implementation
MIT License
241 stars 56 forks source link

Parameters ArcLoss #6

Closed sonfire186 closed 4 years ago

sonfire186 commented 4 years ago

What parameters used for ArcLoss? s = ?, m = ?

leondgarse commented 4 years ago

I'm using the default one , margin1=1.0, margin2=0.5, margin3=0.0, scale=64.0, means s = 64, m = 0.5,

sonfire186 commented 4 years ago

@leondgarse For any datasets?

leondgarse commented 4 years ago

I just tested them on emore and casia dataset. These are the recommended parameters in the original insightface, and there are also other combinations. like

# [margin1, margin2, margin3]
"W&F Norm Softmax": [1, 0, 0],
"SphereFace": [1.5, 0, 0],
"CosineFace": [1, 0, 0.35],
"ArcFace": [1, 0.5, 0],
"Combined Margin_1": [1.2, 0.4, 0],
"Combined Margin_2": [1.1, 0, 0.35],
"Combined Margin_3": [1, 0.3, 0.2],
"Combined Margin_4": [0.9, 0.4, 0.15],

Scale is usually 64.

sonfire186 commented 4 years ago

thnx