8000 Fix IndexError by margaritaG · Pull Request #26 · ScanNet/ScanNet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix IndexError #26

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

margaritaG
Copy link
@margaritaG margaritaG commented Mar 13, 2019

There exists one execution path that results in an IndexError, this fix solves it.

Specifically, whenever we evaluate a single scan which contains a match m that both has_gt and has_pred, in which all predictions are non-matched but also all of them are ignored and not counted as FP, then y_true and consequently y_true_sorted_cumsum are empty arrays.

Then accessing y_true_sorted_cumsum[-1] results in an IndexError.

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

Successfully merging this pull request may close these issues.

1 participant
0