Skip to content

Difference between max_detection_points and max_det_per_image #266

Answered by rwightman
arekmula asked this question in Q&A
Discussion options

You must be logged in to vote

@arekmula Not sure it'd be a good idea to set them equal, especially if you lower detection points into the 100 range like max_det_per_image, for the topk, it's operating on class scores across feature maps for all levels and achors flattened, that's a lot of points with quite a bit of redundancy going into NMS. I feel you want to have a decent number of candidates otherwise some modest scoring (but valid) scores are likely to be tossed due to higher scoring candidates across all the feature levels using up the slots. It really does depend on your use case, dataset, tradeoffs though so experiment, for lower res models you can likely lower it more safely.

max_det_per_image will have less i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arekmula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants