Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About loss in Eq1 #4

Open
JAYATEJAK opened this issue Feb 16, 2023 · 4 comments
Open

About loss in Eq1 #4

JAYATEJAK opened this issue Feb 16, 2023 · 4 comments

Comments

@JAYATEJAK
Copy link

Hi @ducminhkhoi , can you please let me know where exactly the loss is calculated in Equation 1?. I am checking through file in (iFSCRCNN-> modeling -> roi_heads -> fastrcnn.py), but I didn't get any variance matrix for classifier weights that mentioned in equation.

@ducminhkhoi
Copy link
Collaborator

Hi, it is the L473 and L479 of
https://github.com/ducminhkhoi/iFS-RCNN/blob/7b40243b5dd45e8512d12dc3963829b96eb4bb4f/iFS-RCNN/modeling/roi_heads/fast_rcnn.py#L473.
Basically, it is the standard sigmoid focal loss with the new sigmoid computation in Eq. (5) and KL div loss (i.e., minimize the variance).

Best,

@JAYATEJAK
Copy link
Author

Thank you so much for clarification!. I have the doubt in the line 479 -> return_losses['loss_reg'] = self.box_predictor.var.mean() -> Where this self.box_predictor function is defined? (from where this function is imported)

Thanks in advance

@JAYATEJAK
Copy link
Author

Thank you so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants