Skip to content

corrected bug for not counts gts#395

Merged
dpascualhe merged 1 commit intoJdeRobot:masterfrom
iocalangiu:cocomap-bug-no-gts
Mar 3, 2026
Merged

corrected bug for not counts gts#395
dpascualhe merged 1 commit intoJdeRobot:masterfrom
iocalangiu:cocomap-bug-no-gts

Conversation

@iocalangiu
Copy link
Contributor

@iocalangiu iocalangiu commented Mar 2, 2026

in detection_metrics.py ground truths are not counted if the update()function ends early with no predictions.

I moved counting ground truths:

# Update ground truth counts
for g_label in gt_labels:
      self.gt_counts[int(g_label)] += 1

prior to all early returns.

@dpascualhe
Copy link
Collaborator

Looking good! Thanks for your contribution 😄

@dpascualhe dpascualhe merged commit 2846fd8 into JdeRobot:master Mar 3, 2026
@iocalangiu iocalangiu deleted the cocomap-bug-no-gts branch March 4, 2026 14:20
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.

compute_coco_map ignores classes with Ground Truth but zero predictions

2 participants