-
Notifications
You must be signed in to change notification settings - Fork 18
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
accuracy was almost zero #5
Comments
I do feel for you - I've faced the same issue myself. I open this code with the attitude of learning, welcome to point out my code problems, I am still trying. |
@qianjinhao Ok, thank you. I have one thing to confirm. Have you used your loss to test the classification task?This determines my search in the wrong direction |
I was going to see the effect at mnist, but I haven't been able to see the effect yet.When I asked the author, he said that the effect on the classification task might be uncertain, and it would be better to verify it on the data sets commonly used by metric learning. |
"pred.max(dim=1)[1]" is the problem I think where is it.Circle loss did not pass in the one-hot label, he will not learn this mapping relationship, if you want to test on mnist, you need to use a match test like Reid (find the smallest distance). |
This example is designed for classification, but circle loss duels with problems of metric learning. |
|
Hello, @qianjinhao can you provide an example of testing validation on mnist?Because when I used mnist verification, the accuracy was almost zero, but I felt that there was no problem with your implementation of loss, which bothered me very much. The following is my test code.thanks
The text was updated successfully, but these errors were encountered: