Open pastukhov-aleksandr opened 1 year ago
@pastukhov-aleksandr,
Porting from .pt to ncnn can be a nightmare. In your case ncnn can't find a proper output layer. It suggests you use the layer "output0". I hope it works. Most of the time more things need to be adapted before your .pt model works in the ncnn-framework. see also: https://github.com/FeiGeChuanShu/ncnn-android-yolov8/issues/1
If you don't succeed, you can send me the bin and param file and I see what I can do. No promises, I'm very busy right now. However, at some point I will need to walk the same path as you are about to do.
If you succeed, please let me know and we can put some suggestions and hits in the readme.
@Qengineering my model file https://drive.google.com/drive/folders/1HZLjMDFv6JSaL5EXuPCFEFpLHniJ2QCh?usp=share_link
Got them! (Remember, no promises.)
Hello @Qengineering @pastukhov-aleksandr Are you able to solve your issue? I'm also getting the exact same .param file after converting my model from ONNX.
I am waiting for the publication of the solution https://github.com/Tencent/ncnn/issues/4195
Hi @Qengineering thank you for the awesome work.
I've tried to export a custom model and use it with your code. But it was not successful. I've described all the steps here https://github.com/FeiGeChuanShu/ncnn-android-yolov8/issues/8#issuecomment-1610283859
My problem is that it finds 1655 objects in the picture where there is only one relevant object.
I made a public google colab notebook so it's easier to see all the steps I made https://colab.research.google.com/drive/1rZf3f7koBCyGOfZKiOutPtl0El6w6TfR?usp=sharing
Also I've uploaded the .params
file https://github.com/FeiGeChuanShu/ncnn-android-yolov8/files/11887677/old-best-sim-opt-fp16.param.txt
Would appreciate any help or hints on how to solve the issue.
Btw, I've noticed that on ncnn-android-yolov8
they also introduce Crop layer. Could it be the issue?
@yrik,
I'm sorry. At the moment I'm busy with a lot of projects. To be honest, it is hard to find time to investigate the issue. Knowing FeiGeChuanShu, you're in good hands. If there is someone how can solve your issue, it's him.
That's the news we all waiting for.
Good afternoon. how to import a trained model for ncnn correctly?
I tried:
and
onnx2ncnn best-sim.onnx best.param best.bin
I get an error:
best.param: