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

Correct computation of recall in case of missing detection files #119

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

Conversation

gboeer
Copy link

@gboeer gboeer commented Jun 22, 2020

For me, a larger issue of the code is the handling of missing detection files.

The solution proposed so far in this case is to run intersect-gt-and-dr.py to sort those files out which do not have a detection file. However, this completely removes the respective groundtruth information from the evaluation, hence does not provide a correct evaluation of the detection, i.e. the false negatives are not taken into account in those cases. One solution is to add empty detection files for those images where no detections are provided, as has been proposed in #60.

With some small changes, this PR makes it unnecessary to perform the extra step of balancing the detection and groundtruth files. The script can now be run with any number of detection files which for me is much more intuitive. It will still be checked however, if there are groundtruth files for each detection file which may be arguable depending on the application (e.g. for not fully annotated datasets).

PR includes some minor changes for easier Path handling using pathlib.

…th file, without the need to add empty detection files before.

- some minor refactorings for easier path handling
@gboeer gboeer changed the title Will now correctly run if detection files are missing for a groundtru… Correct computation of recall in case of missing detection files Jun 22, 2020
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