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

voc_eval.py on my own dataset #120

Open
Kasyene opened this issue Aug 29, 2019 · 0 comments
Open

voc_eval.py on my own dataset #120

Kasyene opened this issue Aug 29, 2019 · 0 comments

Comments

@Kasyene
Copy link

Kasyene commented Aug 29, 2019

Hello,
I introduced my own dataset with 1 real class + background class.
My dataset is in voc-like format.
I trained it, I can test it and it detects trained class without any problems.
The eval_ssd.py generates the results file. The problem I have is with voc_eval.py to measure map for my class.

VOC07 metric? Yes
Traceback (most recent call last):
  File "voc_eval.py", line 268, in <module>
    do_python_eval()
  File "voc_eval.py", line 79, in do_python_eval
    ovthresh=0.5, use_07_metric=use_07_metric)
  File "voc_eval.py", line 221, in voc_eval
    R = class_recs[image_ids[d]]
KeyError: '0594'

I am not sure if I understand what test.txt should contain and how to fix this issue.
I attatched files with my dataset and result.txt I got from eval_ssd. test.txt attatched is the original one - with 1st error.

trainval.txt
val.txt
test.txt
train.txt
results_1.txt

Edit: I assumed the probem was that file 0594 was in result file and not in the test.txt. So I tried replacing file names in test.txt with all the names in results.txt (without duplicates) and it works now. I am still unsure because I was sure test.txt should contain different set of files.

Can you please help? It seems I am misunderstading something completely.

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

1 participant