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

Why do testnet.py test results (AP,AP50,AP75,APm,APs,APl) all go to 0? #38

Open
906096481 opened this issue Apr 18, 2022 · 15 comments
Open

Comments

@906096481
Copy link

For example ('AP',2.2241e-05)

@krumo
Copy link
Owner

krumo commented Apr 18, 2022

Hi, please consider to provide more details about your experimental setting (e.g. your PyTorch version, your cuda version, the task you are working on and so on). If possible, you are welcome to provide your training log. Only with more details could I give you more help.

@906096481
Copy link
Author

906096481 commented Apr 19, 2022 via email

@krumo
Copy link
Owner

krumo commented Apr 19, 2022

Unfortunately I cannot find where you place your training log. Could you upload it again?

@906096481
Copy link
Author

log.txt

@906096481
Copy link
Author

I realized that maybe the weights were not loaded during the test, so the AP value tended to be 0, but I did write it in.

@krumo
Copy link
Owner

krumo commented Apr 19, 2022

In the training log, we could observe that after training the final model is tested on Foggy Cityscapes val and a performance of ~39.8 mAP@50 is obtained. Did you follow the README.md to run
python tools/test_net.py --config-file "configs/da_faster_rcnn/e2e_da_faster_rcnn_R_50_C4_cityscapes_to_foggy_cityscapes.yaml" MODEL.WEIGHT <path_to_store_weight>/model_final.pth to test your final model?

@906096481
Copy link
Author

Yes, I followed the tutorial. I know the training results are fine, but the test results don't know why.

@906096481
Copy link
Author

I tried writing the weight path directly to default.py, and the result was the same.

@krumo
Copy link
Owner

krumo commented Apr 19, 2022

It seems the training process is okay. Could you also upload your test log here?

@906096481
Copy link
Author

QTKMFMTZXZ_JKIH52 QPO J

@krumo
Copy link
Owner

krumo commented Apr 20, 2022

QTKMFMTZXZ_JKIH52 QPO J

This screenshot doesn't provide any meaningful information. Please make sure you load the correct checkpoint when performing tests.

@906096481
Copy link
Author

QTKMFMTZXZ_JKIH52 QPO J

This screenshot doesn't provide any meaningful information. Please make sure you load the correct checkpoint when performing tests.

1650504901(1)
I have filled in the weight address here, is it correct?

@906096481
Copy link
Author

I have the same problem,maybe we can contact each other to solve the problem in a convenient way such as wechat.

ok.

@906096481
Copy link
Author

I have the same problem,maybe we can contact each other to solve the problem in a convenient way such as wechat.

ok.

wechat number:18205202287

OK

@zhengying455
Copy link

I have the same problem,maybe we can contact each other to solve the problem in a convenient way such as wechat.

ok.

wechat number:18205202287

OK

打扰您了,我最近在学习这个方向相关的知识,在复现代码的是时候遇到了一些问题,或许可以加一下您的微信请教一下吗,如果可以的话,非常感谢

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