nwojke / deep_sort

Simple Online Realtime Tracking with a Deep Association Metric
GNU General Public License v3.0
5.19k stars 1.46k forks source link

Deep sort ID assigning issues #244

Open sowmiyadharmalingam86 opened 3 years ago

sowmiyadharmalingam86 commented 3 years ago

HI I am having the following issues: 1.In deep sort tracker if a Person -A is assigned an id 1. The person then leaves the frame. After few second the Person-A re-enters again. The tracker assigns the same id 1 to the person A. Is this the right behavior of the tracker. If not how to handle this? 2.The other case person-A is assigned an id -1,He leaves the frame and nobody in the frame for a few seconds. Then a new person B enters after few seconds. The same id -1 is assigned to the person -B. How to resolve this issue?

Thanks

rishabh700 commented 3 years ago

Try changing the tracking parameters of deepsort here: https://github.com/nwojke/deep_sort/blob/280b8bdb255f223813ff4a8679f3e1321b08cdfc/deep_sort/tracker.py#L40

diazGT94 commented 3 years ago

Hello I've try a lot of empirical combinations with the tracking parameters but I can still see that in some frames where the same person is detected but a different ID is assigned. However I would like to understand how modifying the max_iou_distance will improve or affect this?

rishabh700 commented 3 years ago

image

AMYEY commented 3 years ago

Have you found any solution to this? I tried decreasing max_iou_distance to 0.50 and inreasing max_age to 60. Still any time two people clash the ID changes, or after any occlusion there is an ID switch. Any suggestions? Thank you @rishabh700 @diazGT94 @sowmiyadharmalingam86

ganjbakhshali commented 2 years ago

I tried increasing max_age to 600. problem is in distance measuring in feature space. that's my Issue too

nanhui69 commented 2 years ago

I tried increasing max_age to 600. problem is in distance measuring in feature space. that's my Issue too Do you solve this problem now?

sushant7878 commented 1 year ago

I tried increasing max_age to 600. problem is in distance measuring in feature space. that's my Issue too

did you solve it. I am stucked with same problem. can you guide through this?

supriya-reflexion commented 1 year ago

Have you resolved this issue, I am facing same issue ?

parvathikp commented 1 year ago

Have you found any solution to this? I tried decreasing max_iou_distance to 0.50 and inreasing max_age to 60. Still any time two people clash the ID changes, or after any occlusion there is an ID switch. Any suggestions? Thank you @rishabh700 @diazGT94 @sowmiyadharmalingam86

Were you able to resolve this issue? I find the same issue in other implementations of deepsort too

supriya-reflexion commented 1 year ago

I tried to finetune MAX_DIST & MAX_IOU_DISTANCE. It helped to reduce the ID switch but did not resolve the issue 100% .