open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.02k stars 9.37k forks source link

Access to probability distribution of detection #10626

Open leoandeol opened 1 year ago

leoandeol commented 1 year ago

Currently after prediction on a dataset, the resulting output contains for each image, a dictionary "pred_instances", which has three members itself: labels, scores, and bboxes. I would like to get for each predicted box, both the softmax distribution (not just the argmax), as well as additional scores (for instance the objectness score from the YOLO models).

How can I obtain such information?

Haleski47 commented 7 months ago

Currently after prediction on a dataset, the resulting output contains for each image, a dictionary "pred_instances", which has three members itself: labels, scores, and bboxes. I would like to get for each predicted box, both the softmax distribution (not just the argmax), as well as additional scores (for instance the objectness score from the YOLO models).

How can I obtain such information?

Hello Haian huang. I meet the same problem. I want to get the distribution but have no solution. May i know how you solve the problem?

leoandeol commented 6 months ago

I solved it by not using mmdet and instead torch hub models.