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
hello,there is some wrong with the compute_adjustment #2
Comments
Hey! @limengyang1992
It is convenient to have adjustments sorted according to the class number than the class frequency. |
Hi @Chumsy0725, I didn't have a deeper look - but it looks like there's still a problem here. As seen from the screenshot, the tensor returned by the above compute_adjustment() method has the order ['0', '1', '10', '11', ...] instead of ['0', '1', '2', '3', ...]. Wouldn't this cause a problem for CIFAR-100 when this output tensor is used to correct the logits, which are always ordered ['0', '1', '2', '3', ...] ? |
Hi Dr. @sadeepj , The issue of keys being out of order is corrected by casting the key as integers. The resulting also the resulting probability values (attached bellow) in |
Thanks @Chumsy0725! I didn't realize that the issue is already fixed by 2e5bd39. @limengyang1992, does this solve the issue you were facing? |
There is no problem with 10 classification, when 100 classification, the order is wrong
I modified it:
The text was updated successfully, but these errors were encountered: