Skip to content

run yolov5 v4.0 error #39

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

Open
caixiong110 opened this issue Feb 18, 2021 · 6 comments
Open

run yolov5 v4.0 error #39

caixiong110 opened this issue Feb 18, 2021 · 6 comments

Comments

@caixiong110
Copy link

run: ./libtorch-yolov5 --source ../images/bus.jpg --weights ../weights/yolov5s.torchscript.pt --gpu --view-img
error:
terminate called after throwing an instance of 'torch::jit::ErrorReport'
what():

aten::_convolution(Tensor input, Tensor weight, Tensor? bias, int[] stride, int[] padding, int[] dilation, bool transposed, int[] output_padding, int groups, bool benchmark, bool deterministic, bool cudnn_enabled) -> (Tensor):
Expected at most 12 arguments but found 13 positional arguments.

why found 13 positional arguments?

system is NVIDIA Jetson Xavier NX and docker
opencv 4.4.0
libtorch 1.6.0
cuda 10.2
yolov5 v4.0

@yasenh
Copy link
Owner

yasenh commented Feb 18, 2021

Hi @caixiong110, could you try yolov5 v3.0 or v3.1. Seems they modified the arch since v4.0 but I don't have time to catch it up at this moment.

@Jelly123456
Copy link

@caixiong110 I am facing the same error as you.
Do you have any solution?

@Apostatee
Copy link

I am using v3.0 and v3.1, and facing this error too.

@Jelly123456
Copy link

@Apostatee The root cause for this error is that pytorch version and libtorch are not the same.
you can check your pytorch version and it has nothing to do with whether it is YoLov5-V3.0 or YoLov5-V3.1.

Hope this information can help you.

@zhujinwen0924
Copy link

aten::_convolution(Tensor input, Tensor weight, Tensor? bias, int[] stride, int[] padding, int[] dilation, bool transposed, int[] output_padding, int groups, bool benchmark, bool deterministic, bool cudnn_enabled) -> (Tensor):
Expected at most 12 arguments but found 13 positional arguments.

hello,Do you have sovle this problem?

@caixiong110
Copy link
Author

caixiong110 commented Feb 21, 2022 via email

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

5 participants