Closed mzmzdcr closed 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.
@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!!
You mentioned that you use all entries in a. Why? I found here about the use of a: https://github.com/tiandunx/loss_function_search/blob/0b17d38da676e1e47423c4983bb8862cf6ca531b/lfs_core/utils/loss.py#L16-L25 According to my understanding, if GT's pred_prob is in a different interval, it will correspond to a different a. Is it to distinguish between hard and easy samples or other purposes? Can you explain the difference between search_type global and local in detail? I didn't find the relevant introduction in your paper for this part.
I understand the role of ReLU you set, but there seems to be a problem because you initialized a like this: https://github.com/tiandunx/loss_function_search/blob/0b17d38da676e1e47423c4983bb8862cf6ca531b/lfs_core/utils/loss_agent.py#L11 I think that because a[0] is 0, it always has no gradient and cannot be updated. So why not initialize to a minimum value, such as 0.001? And, Why only add ReLU to a[0]?
Looking forward to your reply, best regards.
@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.
@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.
@mzmzdcr wangshuo514@sina.com
Hello! Thanks for your work. I found some problems while running your code, I hope you can provide suggestions and answers.
Lastly, I tried to add an auxiliary loss to this work, but the order of magnitude between them is different, so I multiplied this loss by a very small coefficient to add it to the auxiliary loss. I found that if the coefficient is slightly larger, the model will Will collapse. But if it is relatively small, it will affect the classification performance of the model. Can you give me some advice on this?
Thank you