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

Key error raised when running code. #6

Closed
GongXinyuu opened this issue Dec 22, 2017 · 8 comments
Closed

Key error raised when running code. #6

GongXinyuu opened this issue Dec 22, 2017 · 8 comments

Comments

@GongXinyuu
Copy link

Hi, thanks to your great code. However, I've encountered an error when running your code.

...
Analyzing background false positives and false negatives...
mrr:2.0Running per image evaluation...
mrr:2.0Evaluate annotation type keypoints
mrr:2.0DONE (t=3.76s).
DONE (t=4.53s).
/Users/gxy/coco/PythonAPI/analysisAPI/backgroundFalseNegErrors.py:215: MatplotlibDeprecationWarning: The set_axis_bgcolor function was deprecated in version 2.0. Use set_facecolor instead.
ax.set_axis_bgcolor('lightgray')
/Users/gxy/coco/PythonAPI/analysisAPI/backgroundFalseNegErrors.py:226: MatplotlibDeprecationWarning: The set_axis_bgcolor function was deprecated in version 2.0. Use set_facecolor instead.
ax.set_axis_bgcolor('lightgray')
Traceback (most recent call last):
File "/Users/gxy/coco/PythonAPI/run_analysis.py", line 138, in
main()
File "/Users/gxy/coco/PythonAPI/run_analysis.py", line 126, in main
paths = occlusionAndCrowdingSensitivity( coco_analyze, .75, saveDir )
File "/Users/gxy/coco/PythonAPI/analysisAPI/occlusionAndCrowdingSensitivity.py", line 49, in occlusionAndCrowdingSensitivity
total_gts += overlap_index[no]
KeyError: 7
Process finished with exit code 1

Could you please help me?

@GongXinyuu
Copy link
Author

Besides, I've also found that the generated performance report lacks the Fig 9. Top Scoring Errors.

@mkocabas
Copy link

Hi @GloryDream, I got same error as you. Did you solve the issue?

@GongXinyuu
Copy link
Author

@mkocabas nope, I just comment the relevant lines to run the code.

@mkocabas
Copy link

I have added if no in overlap_index: before this line

@GongXinyuu
Copy link
Author

@mkocabas Hi, does this solve the problem?

@mkocabas
Copy link

mkocabas commented Jan 8, 2018

Yes, it solved and doesn't affect the output as far as I see.

@GongXinyuu
Copy link
Author

@mkocabas Thank U very much!

@matteorr
Copy link
Owner

matteorr commented Feb 6, 2018

Duplicate of issue #5, addressed in this commit

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