You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I understand if easy_margin is True, what operation is happening, but I can't understand What that line mean if easy_margin is False.
I understand easy_margin True like this:
if easy_margin True : if cosine(theta) is more than 90 degree, it doesn't add margin m and just use cosine(theta)
But when easy_margin False is too difficult to understand for me.
So can you explain what phi = torch.where((cosine - self.th) > 0, phi, cosine - self.mm) does mean?
reference:
self.th = math.cos(math.pi - m)
self.mm = math.sin(math.pi - m) * m
The text was updated successfully, but these errors were encountered:
At forward of ArcMarginProduct.py
there is this code line:
I understand if easy_margin is True, what operation is happening, but I can't understand What that line mean if easy_margin is False.
I understand easy_margin True like this:
if easy_margin True : if cosine(theta) is more than 90 degree, it doesn't add margin m and just use cosine(theta)
But when easy_margin False is too difficult to understand for me.
So can you explain what phi = torch.where((cosine - self.th) > 0, phi, cosine - self.mm) does mean?
reference:
self.th = math.cos(math.pi - m)
self.mm = math.sin(math.pi - m) * m
The text was updated successfully, but these errors were encountered: