Skip to content

How to match the prediction and targets bounding boxes for MAP #589

Discussion options

You must be logged in to vote

Hi @FrancescoSaverioZuppichini and thanks for the question.

What might be misleading here is the fact that targets and preds is a list of dicts. Each dict represents a sample and contains a list of boxes. While the number of samples in targets and preds has to match, the lists of boxes can vary.

For an example I recommend to have look at this test:
https://github.com/PyTorchLightning/metrics/blob/master/tests/detection/test_map.py

Does this make sense to you?

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by SkafteNicki
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants