obendidi / Tracking-with-darkflow

Real-time people Multitracker using YOLO v2 and deep_sort with tensorflow
GNU General Public License v3.0
523 stars 174 forks source link

error when tracking other objects by using sort #20

Closed DeanHao closed 7 years ago

DeanHao commented 7 years ago

HI,bendidi! I met some problem when trying to track cars. 9.893 FPSTraceback (most recent call last): File "run.py", line 26, in tfnet.camera() File "F:\Tracking-with-darkflow\darkflow\darkflow\net\help.py", line 171, in camera encoder=encoder,tracker=tracker) File "F:\Tracking-with-darkflow\darkflow\darkflow\net\yolov2\predict.py", line 124, in postprocess trackers = tracker.update(detections) File "F:\Tracking-with-darkflow\sort\sort.py", line 213, in update trk.update(dets[d,:][0]) IndexError: too many indices for array I use python3.5,am i use the wrong version of python? thank you!

obendidi commented 7 years ago

should be fixed with latest commit (it's a very bad and simple first fix, but should keep the tracking going until I can think (or anyone else ) of a better method !

DeanHao commented 7 years ago

I found out what the problem is. It comes out when the first frame doesn't show the tracked object.