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

To get confidence score parameter in the sort output #11

Open
hlmhlr opened this issue Dec 23, 2021 · 3 comments
Open

To get confidence score parameter in the sort output #11

hlmhlr opened this issue Dec 23, 2021 · 3 comments

Comments

@hlmhlr
Copy link

hlmhlr commented Dec 23, 2021

Hi,
Thanks for your repo with multi-class sort. Currently, sort outputs the following parameters:
"frame_num, bbox_x1, bbox_y1, bbox_x2, bbox_y2, category, u_overdot, v_overdot, s_overdot, and identity".

How can I add confidence score value for the tracked objects? The output required is:
"frame_num, bbox_x1, bbox_y1, bbox_x2, bbox_y2, category, u_overdot, v_overdot, s_overdot, identity, and confidence_score".

Your help would be highly appreciated.
Thanks,

@tensorturtle
Copy link
Owner

Hi, do you still need assistance with this issue?

@RUIXUEZHAOFENGNIAN
Copy link

I have the same needs

@tensorturtle
Copy link
Owner

Hi @RUIXUEZHAOFENGNIAN , I won't be making that modification because it is a breaking change, but I can tell you how to do it yourself:

  1. In sort.py's KalmanBoxTracker class, find __init__() and update(). Put self.conf = bbox[4] in each.
  2. In the same class, under get_state(), add the confidence to the returned tensor with: arr_conf = np.expand_dims(np.array([self.conf]), 0). Put arr_conf in the final np.concatenate function, wherever you'd like.
  3. Make corresponding changes the code that follows.

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

3 participants