-
Notifications
You must be signed in to change notification settings - Fork 36
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
onnx2ncnn.exe problem #3
Comments
@kizoooh , did you solve this issue? |
you can use yolov7 export.py export xx.torchscript.pt. And then use pnnx to exchange ncnn xx.bin and xx.param |
Hi, I did not save the issue. And I used export.py to torchscript.pt and pnnx justlike @chenzj-king says, also not work. And this is my final .param file, it is a param file but I can not use it in my Android phone. |
Thank you so much for your reply. I tried your method but stucked at
Did you know how to solve it? Thank you again for your advice! |
@kizoooh Hi, did you solve that? same problem here 😭 |
Not yet😭 |
Did you set input shapes at argument?
and then,
with these commands above, I could see the output bounding boxes successfully on my android device. |
Thank you for the reply, I have tried this but it didn't work. Maybe I should find some problem myself because I see a lot of people worked successfully using this method. |
My pnnx didn't work with the command |
Same problem! @mhyeonsoo Waiting for your .pt to .torchscript.pt command, thank you so much! |
I tried exporting the weight with command |
I tried it and works, but I didn't change any command based on the last try, I dont know why, but anyway it finally works. Thank you so much! |
I used the command below.
Reason of low detection performance might be another problem which may not be related to this converting issue. |
Another question, how can you use |
Thank you for your great work! It is very useful.
But when I use onnx2ncnn.exe in ncnn to transfer yolov7.onnx into bin and param, I got these errors:
Unsupported slice axes !
ScatterND not supported yet!
Unsupported slice axes !
Expand not supported yet!
ScatterND not supported yet!
Unsupported slice axes !
ScatterND not supported yet!
Unsupported slice axes !
Expand not supported yet!
ScatterND not supported yet!
Unsupported slice axes !
ScatterND not supported yet!
Unsupported slice axes !
Expand not supported yet!
ScatterND not supported yet!
And the created bin and param can not work in my android phone by your code. While when I can use the default bin and param in your code, it works.
I use the way you mentioned in #2 to transfer yolov7.pt into yolov7.onnx.
Thank you for your answer!
The text was updated successfully, but these errors were encountered: