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

softmax vs cosine softmax ? #257

Open
YoungjaeDev opened this issue Dec 7, 2022 · 1 comment
Open

softmax vs cosine softmax ? #257

YoungjaeDev opened this issue Dec 7, 2022 · 1 comment

Comments

@YoungjaeDev
Copy link

Hi
In the official code (https://github.com/nwojke/deep_sort), he focused on generative learning using cosine_softmax loss
image

However, in the code implemented by pytorch that code refer to, it simply conducted a discrimitive learning with cross_entropy

criterion = torch.nn.CrossEntropyLoss()

Is there a big difference between the reason and the performance of this implementation?

@yesmineht
Copy link

hello @youngjae-avikus did you change it to cosine softmax_loss ?

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