davidsandberg / facenet

Face recognition using Tensorflow
MIT License
13.77k stars 4.81k forks source link

if size of images set 110, and how to set margin? #556

Closed ronyuzhang closed 6 years ago

ronyuzhang commented 6 years ago

@davidsandberg

qixianbiao commented 6 years ago

Currently, it is very hard to train the model with Triplet loss. The most succussful model is trained with classification loss (softmax loss, center loss), no margin..

If you train your model with sphereface, it has an angle margin. it is hard to set the margin, no fixed solution. Try it.

davidsandberg commented 6 years ago

@ronyuzhang Difficult to say. I guess you would have to try a few margins and select the one that works best.