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

Test Error #5

Open
AmingWu opened this issue Jul 31, 2021 · 4 comments
Open

Test Error #5

AmingWu opened this issue Jul 31, 2021 · 4 comments

Comments

@AmingWu
Copy link

AmingWu commented Jul 31, 2021

Dear Authors,

I have trained the model. But when I make a test, there is an error.

python ./tools_cam/test_cam.py --config_file ./configs/ILSVRC/deit_tscam_base_patch16_224.yaml --resume /home/user/Desktop/wam/TS-CAM/ckpt/ImageNet/deit_tscam_base_patch16_224_CAM-NORMAL_SEED26_CAM-THR0.12_BS256_2021-07-29-21-38/ckpt/model_best.pth TEST.SAVE_BOXED_IMAGE True MODEL.CAM_THR 0.12
QQ截图20210731081402

@vasgaowei
Copy link
Owner

From your scripts, you have already trained ts-cam based on deit-base backbone, and saved corresponding model weights. You may try adding a line in test_cam.py:

from models.vgg import vgg16_cam

image

@AmingWu
Copy link
Author

AmingWu commented Aug 1, 2021

Thanks for your reply. I run the test code. How to see the test result?
捕获

@vasgaowei
Copy link
Owner

From your screenshot, the top1 (Cls@1) and top5 (Cls@5) classification accuracy are 68.7% and 88.9% respectively. And top1 (Loc@1) and top5 (Loc@5) localization accuracy are 47.4% and 59.4%, respectively. The Loc_gt, which means the image target label is known, is 63.9%.

@punk1
Copy link

punk1 commented May 14, 2022

From your screenshot, the top1 (Cls@1) and top5 (Cls@5) classification accuracy are 68.7% and 88.9% respectively. And top1 (Loc@1) and top5 (Loc@5) localization accuracy are 47.4% and 59.4%, respectively. The Loc_gt, which means the image target label is known, is 63.9%.

hello i have a question ,Shouldn't the accuracy of the final test be average?

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

3 participants