Skip to content

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

Closed
gboeer wants to merge 1 commit intoCartucho:masterfrom
gboeer:fix_recall
Closed

Correct computation of recall in case of missing detection files#119
gboeer wants to merge 1 commit intoCartucho:masterfrom
gboeer:fix_recall

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
@gboeer gboeer closed this by deleting the head repository Aug 20, 2025
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