tiandunx / loss_function_search

Loss Function Search for Face Recognition
40 stars 9 forks source link

About the lossAgent settings #6

Closed mzmzdcr closed 3 years ago

mzmzdcr commented 3 years ago

Hello! Thanks for your work. I found some problems while running your code, I hope you can provide suggestions and answers.

tiandunx commented 3 years ago

@mzmzdcr Thanks for your attention to our work. For your first question, you mention "but actually,only a[0] is used", but actually all entries in a will be used. You may see a will take effect in my_loss.py For your second question, relu is used to guarantee that it will produce non-negative numbers. The reason behind it is that Eq7 and Eq8. These two equations indicate that 0 < h(a, p) <= 1, as we claimed in our paper, that the key to margin based face recognition is how to reduce probability of ground truth. For your 3rd question, well . You may take an AM trained model to observe at what degree a should be.

mzmzdcr commented 3 years ago

@tiandunx Thank you very much for your explanation. Forgive me for not responding in time due to a lot of things at the end of my recent semester. Well, according to your answer, I still have some details that are not very clear, I hope you can explain!!

Looking forward to your reply, best regards.

tiandunx commented 3 years ago

@mzmzdcr Sorry for late respond. I'm so busy. The default search type is global. It should be used in conjuction with local settings when epochs reaches 2. The reason behind this intuitive is that at the very beging of the training, the network is randomly initialized, we should first take 2 epochs to train the network. After that, the network is capable of distinguishing faces. From then on you may change the setting to local search.

mzmzdcr commented 3 years ago

@tiandunx Thank you for your answer. Can you leave me your email address? I would like to write an email in Chinese to ask you for some details. Because I may not express enough in English and I am also doing research on the automatic design of loss function recently, so I am very concerned about the details of your project.

tiandunx commented 3 years ago

@mzmzdcr wangshuo514@sina.com