deepinsight / deepinsight/insightface

Clarification on ARCFACE loss function

Open
#2,738 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29.7k
Forks
6.1k
PR merge metrics
No merged PRs in 30d

Description

Hi insightface team, thank you for this repo.

I had a question related to the arcface loss function.

In the 1st part of the denominator (j = y_i), you have added +m margin which increases the "Intra-class compactness"

But in the 2nd part of denominator (j != y_i), you are not adding or subtracting any margin.... I was just curious what would happen if we add -m margin to theta.... Won't that increases the "Inter class separability"

Thankyou for reading my question, I will be waiting for your response.

![Image](https://github.com/user-attachments/assets/bb24b811-dc5f-4515-8e1c-a68bf4239605)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.