Closed wujiyang closed 5 years ago
In the forward function, why mulitiply the norm of feature after output ? output = (one_hot * (phi_theta - cos_theta) / (1 + self.lamb)) + cos_theta output *= NormOfFeature.view(-1, 1)
output = (one_hot * (phi_theta - cos_theta) / (1 + self.lamb)) + cos_theta output *= NormOfFeature.view(-1, 1)
In sphereface, author doesn't normalize the feature
Thank you very much, I got it.
In the forward function, why mulitiply the norm of feature after output ?
output = (one_hot * (phi_theta - cos_theta) / (1 + self.lamb)) + cos_theta output *= NormOfFeature.view(-1, 1)