Comments (6)
Open your .param in Netron website :
Then you'll see the convolution output names.
For your model, you may use : "/model.77/m.0/Conv_output_0" instead of "output" "/model.77/m.1/Conv_output_0" instead of "286" "/model.77/m.2/Conv_output_0" instead of "298"
dadin852
It worked!!
I greatly appreciate your help! It was extremely useful!
from ncnn-android-yolov7.
Next, go to these reference :
https://youtu.be/PukcRMN-Hs0
https://youtu.be/gOvvzS1-RuI
https://blog.csdn.net/qq_43268106/article/details/127139216
Finally, we need to change output name to Convolution, instead of Permute :
Thank @xiang-wuu so much for this example!
from ncnn-android-yolov7.
Hi dadin852,
I followed the steps recommended by you and in the videos indicated, but I still have a problem. The application closes right after turning on the camera.
Using the weights available here in git (assets/yolov7-tiny.bin and yolov7-tiny.param) the application works normally on my cell phone.
Do you have any ideas to help me? Below is the modified excerpt from yolo.cpp
from ncnn-android-yolov7.
Seems that you're using Premute outputs. Would you try to set Convolution as outputs?
from ncnn-android-yolov7.
Seems that you're using Premute outputs. Would you try to set Convolution as outputs?
Thanks for your feedback dadin852!
Unfortunately, I don't think I have enough experience to make this change.
I'm exporting the trained weights from pytroch to onnx with the command:
python export.py --weights yolov7-tiny.pt --simplify --topk-all 100 --iou-thres 0.50 --conf-thres 0.15 --img-size 448 448 --max-wh 448
to export from onnx to ncnn use:
./onnx2ncnn yolov7-tiny.onnx yolov7-tiny.param yolov7-tiny.bin
Should the changes suggested by you be made directly in the generated .param file or in the onnx file?
Below I am sending the generated .param file.
yolov7-tiny.zip
from ncnn-android-yolov7.
Open your .param in Netron website :
Then you'll see the convolution output names.
For your model, you may use :
"/model.77/m.0/Conv_output_0" instead of "output"
"/model.77/m.1/Conv_output_0" instead of "286"
"/model.77/m.2/Conv_output_0" instead of "298"
from ncnn-android-yolov7.
Related Issues (16)
- direct detect interface HOT 1
- Is there a way to add YOLOv6 to the app to compare?
- cmake build error HOT 1
- How to use yolov7.pt & yolov7-w6-pose.pt HOT 1
- How to switch camera used? HOT 1
- Error converting from onnx to ncnn HOT 3
- 老哥可以出个yolov5的分类模型推理吗? HOT 1
- pt->onnx->ncnn HOT 2
- onnx2ncnn.exe problem HOT 14
- about fps HOT 1
- cmake build error HOT 1
- camera resolution
- problem using custom weights HOT 3
- Video showing but no object detections HOT 9
- fp16 model problem
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ncnn-android-yolov7.