Closed alexliyang closed 6 years ago
@alexliyang Use tf.multiply will need one or two more lines to implement this. But there is no need and no reason to use tf.multiply. There must be other problems cause u get "nan" value but not tf.matmul : )
thank you very much! I reference your code to write arcface (insightface) loss function. I correct some errors and start trainning . I hope 'nan' log disappered.
@alexliyang Oh great! I also tried Arcface once, and failed to converge. Looking forward to your progress on that : )
in fact, we try to use AM (mobilenet, tf), but the converge is very slow and acc is not good, only about 0.74 . we can not understand where the error is .
@alexliyang See Issue, there are some useful tips in it, hope it helps u.
Thank you ! we try .
Hi : I have question : in order to get the cos_theta , here tf.matmul is used, when I train a net, "nan" log is showed, so I confused, tf.matmul get a matrix result, tf.multiply get a scalar value. Can I use tf.multiply here ?