tensorflow-sphereface-asoftmax icon indicating copy to clipboard operation
tensorflow-sphereface-asoftmax copied to clipboard

Why use the sign function in the cos(m*the)

Open Erdos001 opened this issue 7 years ago • 3 comments

cos_sign = tf.sign(cos_th)

res = 2*tf.multiply(tf.sign(cos_th), tf.square(cos_th)) - 1

what's the mean of the sign function in calculate the cos(m*th)

Erdos001 avatar Jan 16 '18 06:01 Erdos001

Sorry, I see. For th reason that demonstrated in the paper

Erdos001 avatar Jan 16 '18 09:01 Erdos001

@Erdos001 so what's the meaning? where should I look in the paper?

yinghuang avatar Jul 11 '18 09:07 yinghuang

@Erdos001 can you point why the author add sign function?

wangyongjie-ntu avatar Dec 19 '18 14:12 wangyongjie-ntu