Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZeroDivisionError: division by zero #252

Open
jzp-skam opened this issue Jul 14, 2022 · 3 comments
Open

ZeroDivisionError: division by zero #252

jzp-skam opened this issue Jul 14, 2022 · 3 comments

Comments

@jzp-skam
Copy link

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?

@tdchua
Copy link

tdchua commented Sep 9, 2022

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

@jzp-skam
Copy link
Author

jzp-skam commented Sep 9, 2022

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

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

@Qizec
Copy link

Qizec commented Oct 5, 2022

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?
能加个好友吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants