-
Notifications
You must be signed in to change notification settings - Fork 114
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
Comments
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. |
@caixiong110 I am facing the same error as you. |
I am using v3.0 and v3.1, and facing this error too. |
@Apostatee The root cause for this error is that pytorch version and libtorch are not the same. Hope this information can help you. |
hello,Do you have sovle this problem? |
i solved it, you must ensure version consistency that python install libtorch with you C++ used libtorch version,such as libtorch 1.7 with same python used install version 'libtorch 1.7' (or 1.6 sames).
At 2022-01-22 20:53:48, "zhujinwen0924" ***@***.***> wrote:
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?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
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
The text was updated successfully, but these errors were encountered: