kcg2015 / Vehicle-Detection-and-Tracking

Computer vision based vehicle detection and tracking using Tensorflow Object Detection API and Kalman-filtering
533 stars 191 forks source link

Error: 'Tracker' object has no attribute 'R_ratio' #6

Closed Biyu-GitHub closed 5 years ago

Biyu-GitHub commented 5 years ago

Hello, this is an error when I run tracker.py.

File "tracker.py", line 58, in init self.R_diag_array = self.R_ratio * np.array

AttributeError: 'Tracker' object has no attribute 'R_ratio'

So, I want to know, where is 'R_ratio' defined?

Thank you!

kcg2015 commented 5 years ago

@Biyu-GitHub, thanks for spotting this bug. All self.R_ratio should be replaced with self.R_scaler. Let me know if you can run the code or encounter other errors.

Biyu-GitHub commented 5 years ago

@Biyu-GitHub, thanks for spotting this bug. All self.R_ratio should be replaced with self.R_scaler. Let me know if you can run the code or encounter other errors.

Thank you very much ! I can run the code now.