Towards-Realtime-MOT icon indicating copy to clipboard operation
Towards-Realtime-MOT copied to clipboard

ZeroDivisionError: division by zero

Open jzp-skam opened this issue 1 year ago • 3 comments

When I finish training my data set, I get latest.pt, errors are reported when tracking with this weight as follows: File "E:\python_workspace\JDE\track.py", line 203, in main(opt, File "E:\python_workspace\JDE\track.py", line 139, in main nf, ta, tc = eval_seq(opt, dataloader, data_type, result_filename, File "E:\python_workspace\JDE\track.py", line 90, in eval_seq online_targets = tracker.update(blob, img0) File "E:\python_workspace\JDE\tracker\multitracker.py", line 318, in update track.activate(self.kalman_filter, self.frame_id) File "E:\python_workspace\JDE\tracker\multitracker.py", line 63, in activate self.mean, self.covariance = self.kalman_filter.initiate(self.tlwh_to_xyah(self._tlwh)) ZeroDivisionError: division by zero

How to solve this problem?

jzp-skam avatar Jul 14 '22 01:07 jzp-skam

I also have encountered this issue, have you found a way to solve it?

tdchua avatar Sep 09 '22 07:09 tdchua

我也遇到了这个问题,请问您找到解决方法了吗?

你可以看一下你的训练代码中img-size和cfg中的是否一致,我好像是因为这个不一致导致的

jzp-skam avatar Sep 09 '22 08:09 jzp-skam

When I finish training my data set, I get latest.pt, errors are reported when tracking with this weight as follows: File "E:\python_workspace\JDE\track.py", line 203, in main(opt, File "E:\python_workspace\JDE\track.py", line 139, in main nf, ta, tc = eval_seq(opt, dataloader, data_type, result_filename, File "E:\python_workspace\JDE\track.py", line 90, in eval_seq online_targets = tracker.update(blob, img0) File "E:\python_workspace\JDE\tracker\multitracker.py", line 318, in update track.activate(self.kalman_filter, self.frame_id) File "E:\python_workspace\JDE\tracker\multitracker.py", line 63, in activate self.mean, self.covariance = self.kalman_filter.initiate(self.tlwh_to_xyah(self._tlwh)) ZeroDivisionError: division by zero

How to solve this problem? 能加个好友吗?

Qizec avatar Oct 05 '22 10:10 Qizec