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

我执行的时候 报一个 除0错误 是什么情况? #2

Open
apeman1949 opened this issue Jun 27, 2021 · 4 comments
Open

我执行的时候 报一个 除0错误 是什么情况? #2

apeman1949 opened this issue Jun 27, 2021 · 4 comments

Comments

@apeman1949
Copy link

fa@ubuntu:~/Downloads/Yolov5-Deepsort-main$ python3 demo.py
/home/fa/Downloads/Yolov5-Deepsort-main/deep_sort/utils/parser.py:23: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
self.update(yaml.load(fo.read()))
/home/fa/.local/lib/python3.8/site-packages/torch/nn/functional.py:718: UserWarning: Named tensors and all their associated APIs are an experimental feature and subject to change. Please do not use them for anything important until they are released as stable. (Triggered internally at /pytorch/c10/core/TensorImpl.h:1156.)
return torch.max_pool2d(input, kernel_size, stride, padding, dilation, ceil_mode)
fps: 0
Traceback (most recent call last):
File "demo.py", line 50, in
main()
File "demo.py", line 13, in main
t = int(1000/fps)
ZeroDivisionError: division by zero

@Pluto-wei
Copy link

因为没有他E盘的视频文件,没有读取到视频的帧数

@springfrie
Copy link

????

@springfrie
Copy link

能具体一下吗?

@guojun999
Copy link

cap = cv2.VideoCapture('')这一句读取你自己的视频路径,我猜可能是没有读到输入导致一些对象不能实例化?

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

4 participants