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

TypeError: YOLOX.forward() got an unexpected keyword argument 'nms_thresh' #50

Closed
timmermansjoy opened this issue Mar 29, 2023 · 1 comment

Comments

@timmermansjoy
Copy link

when trying to do the command in the readme python tools/vid_demo.py -f ./exps/yolov/yoloxs_vid.py -c ./yoloxs_vid.pth --path ./189_4_1_20230217042816000.tmp.mp4 --conf 0.25 --nms 0.5 --tsize 600 I get the following error:

File "/Users/joy/jtest/YOLOV/tools/vid_demo.py", line 303, in <module>
    main(exp, args)
  File "/Users/joy/jtest/YOLOV/tools/vid_demo.py", line 296, in main
    imageflow_demo(predictor, vis_folder, current_time, args)
  File "/Users/joy/jtest/YOLOV/tools/vid_demo.py", line 224, in imageflow_demo
    outputs.extend(predictor.inference(ele))
  File "/Users/joy/jtest/YOLOV/tools/vid_demo.py", line 137, in inference
    outputs,outputs_ori = self.model(img, nms_thresh=self.nmsthre)
  File "/Users/joy/jtest/YOLOV/.venv/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1501, in _call_impl
    return forward_call(*args, **kwargs)
TypeError: YOLOX.forward() got an unexpected keyword argument 'nms_thresh'
@YuHengsss
Copy link
Owner

Hello, sorry for my unclear instruction, you should use demo.py for yolox model and vid_demo.py for yolov model.

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

2 participants