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

The bench function returns negative FP for some samples, resulting in wrong F1 score calculation #36

Open
milad2073 opened this issue Jan 31, 2024 · 0 comments

Comments

@milad2073
Copy link

Hi,
When one of the predicted lanes can be matched to more than one ground truth the matched variable would be bigger than the number of predictions because of that, this line:
fp = len(pred) - matched
will calculate the FP negative.
Then the bench function returns negative FP for that image. This makes the calculated f1 wrong and then the final f1_score will be wrong.

I saw this issue in about 20 samples for my predictions and it resulted in a 0.09 percent error in the calculation of the F1 score.

Screenshot from 2024-01-31 10-56-43

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

No branches or pull requests

1 participant