abewley / sort

Simple, online, and realtime tracking of multiple objects in a video sequence.
GNU General Public License v3.0
3.92k stars 1.09k forks source link

unexpected keyword argument 'compute_log_likelihood' #95

Closed GOBish closed 4 years ago

GOBish commented 4 years ago

I am trying to run sort.py on MOT16 and I get the following error:

Processing MOT16-02. Traceback (most recent call last): File "sort.py", line 306, in trackers = mot_tracker.update(dets) File "sort.py", line 243, in update trk = KalmanBoxTracker(dets[i,:]) File "sort.py", line 102, in init self.kf = KalmanFilter(dim_x=7, dim_z=4, compute_log_likelihood=True) TypeError: init() got an unexpected keyword argument 'compute_log_likelihood'

abewley commented 4 years ago

Looks like the version of filterpy you have installed doesn't use this keyword arg. Since this is removed in the newest version of filterpy I've removed this from sort and updated the requirements. You should be able to do a git pull and it should work. If this works for you feel free to close the issue.

GOBish commented 4 years ago

thanks.

prabh27 commented 4 years ago

In the requirements.txt, I see filterpy==1.4.5, I still get this error with version 1.4.5, but this error is not there with version 1.4.1 Maybe you want to update the requirements.txt file?