mirror of
https://github.com/deepinsight/insightface.git
synced 2026-05-16 05:27:56 +00:00
fix combined margin
This commit is contained in:
@@ -249,7 +249,7 @@ def get_symbol(args, arg_params, aux_params):
|
||||
zy = mx.sym.pick(fc7, gt_label, axis=1)
|
||||
cos_t = zy/s
|
||||
t = mx.sym.arccos(cos_t)
|
||||
if args.margin_a>0.0:
|
||||
if args.margin_a!=1.0:
|
||||
t = t*args.margin_a
|
||||
if args.margin_m>0.0:
|
||||
t = t+args.margin_m
|
||||
|
||||
Reference in New Issue
Block a user