-
Notifications
You must be signed in to change notification settings - Fork 53
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
The torchscript weight from YoLoV5 is not workable #2
Comments
I solved this by changing some codes in the export.py from YoLoV5 repo. |
It may be that the author of YOLOv5 updated the repo so that some operators in the network are not supported. Perhaps you can solve this problem by cloning the previous version of the YOLOv5 repo and use "export.py" to get the torchscript file.
…------------------ 原始邮件 ------------------
发件人: "Nebula4869/YOLOv5-LibTorch" <notifications@github.com>;
发送时间: 2020年10月6日(星期二) 凌晨0:01
收件人: "Nebula4869/YOLOv5-LibTorch"<YOLOv5-LibTorch@noreply.github.com>;
抄送: "Subscribed"<subscribed@noreply.github.com>;
主题: [Nebula4869/YOLOv5-LibTorch] The torchscript weight from YoLoV5 is not workable (#2)
Thanks very much for creating this repo.
Now I am facing one problem that the converted torchscript weight from YoLoV5 is not working with the code you provided.
The conversion is followed on this:
ultralytics/yolov5#251
The image size is set to [640, 640] and I also modified your code to be 640.
When loading your existing torchscript weight, it works perfectly.
Do you know which could be the reasons?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thanks very much for your reply. Now I could not run with the torchscript model exported in GPU mode. |
Export the torchscript with |
could you tell me the code where to change?PLZ |
|
@1chimaruGin @yy2lyx |
Thanks very much for creating this repo.
Now I am facing one problem that the converted torchscript weight from YoLoV5 is not working with the code you provided.
The conversion is followed on this:
ultralytics/yolov5#251
The image size is set to [640, 640] and I also modified your code to be 640.
When loading your existing torchscript weight, it works perfectly.
Do you know which could be the reasons?
Thanks.
The text was updated successfully, but these errors were encountered: