Skip to content

Edge cases for empty frames + test with non-empty frames.#1395

Merged
jveitchmichaelis merged 2 commits into
mainfrom
empty_frames_box_recall
May 27, 2026
Merged

Edge cases for empty frames + test with non-empty frames.#1395
jveitchmichaelis merged 2 commits into
mainfrom
empty_frames_box_recall

Conversation

@bw4sz
Copy link
Copy Markdown
Collaborator

@bw4sz bw4sz commented May 26, 2026

In the BOEM workflow I found a funny edge case where if the test dataset has both empty frames and non-empty frames, it produces a non-intuitive results. It was mathematically correct, but just confusing and too literal. We were dividing the recalls by the total number of images, so the average box_recall score was (number of matches/total number of images), but given that some of those images are empty, it produces a strange result. So if you had two images, 1 with one ground truth, correctly matched, and one that was empty, the average box_recall was 0.5, when it really should be 1 match /1 image with GT + empty image, not 1 match / (2 images).

AI-Assisted Development

I have coalesced around a cursor strategy where I identify errors, discuss with the agent. I then have cursor develop failing tests, which then I implement a correction for and then we all agree its passing. This feels reasonable since there is an adversarial element to it.

@bw4sz bw4sz requested a review from jveitchmichaelis May 26, 2026 03:17
@jveitchmichaelis
Copy link
Copy Markdown
Collaborator

Think you're missing the logic fix here - I only see tests

@bw4sz
Copy link
Copy Markdown
Collaborator Author

bw4sz commented May 26, 2026

That was really sad. Pushed.

Copy link
Copy Markdown
Collaborator

@jveitchmichaelis jveitchmichaelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@jveitchmichaelis jveitchmichaelis merged commit 4cbb0e8 into main May 27, 2026
8 checks passed
@jveitchmichaelis jveitchmichaelis deleted the empty_frames_box_recall branch May 27, 2026 16:49
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.

2 participants