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

video inference fails. #232

Open
HwanWoongLee opened this issue Feb 16, 2023 · 0 comments
Open

video inference fails. #232

HwanWoongLee opened this issue Feb 16, 2023 · 0 comments

Comments

@HwanWoongLee
Copy link

When I try the following command, I get the following error.

command

python eval.py --trained_model=weights/yolact_edge_54_800000.pth --score_threshold=0.3 --top_k=100 --video_multiframe=2 --trt_batch_size 2 --video=my_video.mp4 --disable_tensorrt

error message

Processing FPS: 38.36 | Video Playback FPS: 0.00 | Frames in Buffer: 334 Traceback (most recent call last):
File "eval.py", line 1280, in
evaluate(net, dataset)
File "eval.py", line 927, in evaluate
evalvideo(net, args.video)
File "eval.py", line 803, in evalvideo
frame['value'] = frame['value'].get()
File "C:\Python\lib\multiprocessing\pool.py", line 768, in get
raise self._value
File "C:\Python\lib\multiprocessing\pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "eval.py", line 688, in transform_frame
frames = [torch.from_numpy(frame).cuda().float() for frame in frames]
File "eval.py", line 688, in
frames = [torch.from_numpy(frame).cuda().float() for frame in frames]
TypeError: expected np.ndarray (got NoneType)

Environment:

  • OS: Windows 10 Pro
  • GPU: RTX 3080Ti
  • CUDA Version 11.3

image

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

1 participant