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.py"can evalute the dataset under the trained model? #5

Open
ghost opened this issue May 23, 2023 · 2 comments
Open

"test.py"can evalute the dataset under the trained model? #5

ghost opened this issue May 23, 2023 · 2 comments

Comments

@ghost
Copy link

ghost commented May 23, 2023

Hi Shariatnia, thanks for the tutorial! It helps a lot!
But I am still confused about test.py and have some bugs.
I trained the full VOC dataset and ran 200 epochs, resulting in a model best_vaild_loss.pth. I would like to evaluate the mAP of the trained model, but I am getting the following errors. I am wondering how to solve the problem. Do you have any suggestions?
image

@moein-shariatnia
Copy link
Owner

go to debugger mode and check what the output of bboxes tensor is. I guess maybe the model has not been able to detect any boxes for one image and that could explain this error.

@WenLinLliu
Copy link

this is because model can't detects any objecting,change 53 line of test.py to
if EOS_idx == 0 or EOS_idx == 1:

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

2 participants