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

Modification of focal loss for it to works with mix-up augmentation? #20

Open
rtxbae opened this issue Dec 9, 2022 · 0 comments
Open

Comments

@rtxbae
Copy link

rtxbae commented Dec 9, 2022

I'm trying to train on relatively small datasets, mix-up is one way to reduce it from overfitting, but it seems like focal loss is not designed to works with label with probabilities. It seems that this line

target_classes_onehot.scatter_(2, target_classes.unsqueeze(-1), 1)
specifically designed for binary classification.

Do you have any idea how to modify focal loss for label with probabilities?

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

1 participant