Open dongjunhwang opened 2 years ago
Thank you for reporting this crucial issue. We have already revised it and retested all our checkpoints. Fortunately, it does not much influence the evaluation scores. Corresponding results will be updated soon.
We already have updated the scores of our models on these datasets. Thank you again for reporting this issue.
Sorry for the serveral issues that i made. and thank you for your fast answering.
Reference by wsolevaluation code, i think
libs/inference.py
in this repository have some problem about code indentation.The
BoxEvaluator
andMaskEvaluator
class hasaccumulate
function that calculate localization score just only one class activation map. and thecompute
function calculate the total score using all of localization scores before we calculated byaccumulate
function .So the accumulate function must be inside of the for loop. (because it calculate only one class activation map generated by one image)
But I found in
libs/inference.py
, the accumulate function exist the outside of the for loop like this.So, I think the code changes like below. Am I provide right solution about the
inference.py
?And the other important thing is that this change the score of the method. Because current code only evaluate the one last image, and differently, fixed code evaluate the all of the images on dataset.
For example, the CUB (Resnet Backbone use the checkpoint #1 ) has the 71.35 score in current code, but fixed code generate 69.87.
Thanks.