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

Question about label-aware smoothing #4

Closed
Phoebe-ovo opened this issue May 2, 2021 · 2 comments
Closed

Question about label-aware smoothing #4

Phoebe-ovo opened this issue May 2, 2021 · 2 comments

Comments

@Phoebe-ovo
Copy link

Hello:
In the paper, I think you mean nll_loss is only for the gt label and smooth_loss is for the remaining K-1 label.
But in the code
https://github.com/Jia-Research-Lab/MiSLAS/blob/e8f91e59a910c5543ea1bcabb955ba368c606a00/methods.py#L62
I think you still contain the gt label in the smooth_loss.
I am confusing about this.

@zs-zhong
Copy link
Collaborator

zs-zhong commented May 2, 2021

Hi, thank you for your interest! The code is slightly different from the equations mentioned in our paper. In fact, when the dataset contains more classes, there is not much difference. In our code, the weight for the GT label is confidence + smoothing / num_classes.

@zs-zhong
Copy link
Collaborator

zs-zhong commented May 6, 2021

Hi, I will close this issue. If you have further confusion or question, you can reopen it again.

@zs-zhong zs-zhong closed this as completed May 6, 2021
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