visionml / pytracking

Visual tracking library based on PyTorch.
GNU General Public License v3.0
3.19k stars 603 forks source link

How to get box confidence score? #409

Closed yarkable closed 3 months ago

yarkable commented 9 months ago

Hi, may I ask how can I get the confidence score of a tracker? In the code, it's set to be 1 in default. image

setarekhosravi commented 9 months ago

@yarkable Hi, for ToMP, or KeepTrack please check out value in the tracker.py code. It includes bounding boxes, object presence score, and inference time. Screenshot from 2023-12-04 14-10-03

yarkable commented 9 months ago

thank you very much @Setarekhosravi

eliafranc commented 5 months ago

@setarekhosravi Is there also a way to get a score for the RTS tracker?

setarekhosravi commented 5 months ago

@eliafranc Hi, I think there is, check this code and print or plot some variables such as clf_scores, I think you will find a way. For other repositories in the tracking field, I found a score map in their tracker code, I plotted it and I got the maximum value of the score map as the confidence score, I visualized the results and I think this method is reliable.