insightface icon indicating copy to clipboard operation
insightface copied to clipboard

Need of forward_backward in partial_fc.py for arcface_torch ?

Open bokey007 opened this issue 4 years ago • 2 comments

Why do we explicitly need to code the backward part in forward_backward in partial_fc.py for arcface_torch?

can't PyTorch auto-differentiation take care of this?

I would really appreciate help on this.

Thanks

bokey007 avatar May 01 '21 04:05 bokey007

same question here. how to simplfy the code to avoid manually compute the arcface gradient (grad and x_grad) in partial_fc.py ?@anxiangsir

Light-- avatar May 07 '21 08:05 Light--

did anyone find an answer or another solution for backward?

msedebrahimi avatar Jun 23 '22 18:06 msedebrahimi