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

ValueError in average_precisions.items() unpack #3

Open
AbdullahArean opened this issue Feb 9, 2024 · 1 comment
Open

ValueError in average_precisions.items() unpack #3

AbdullahArean opened this issue Feb 9, 2024 · 1 comment

Comments

@AbdullahArean
Copy link

`---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
----> 1 mean_ap, average_precisions = mean_average_precision_for_boxes('/kaggle/working/ground_truths.csv','/kaggle/working/predictions.csv')

in mean_average_precision_for_boxes(ann, pred, iou_threshold, exclude_not_in_annotations, verbose)
115 present_classes = 0
116 precision = 0
--> 117 for label, (average_precision, num_annotations, _, _) in average_precisions.items():
118 if num_annotations > 0:
119 present_classes += 1

ValueError: not enough values to unpack (expected 4, got 2)`

@ZFTurbo
Copy link
Owner

ZFTurbo commented Feb 9, 2024

Hello. Can you post first 10 lines of each file?

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

2 participants