Comments (9)
不,我自己也无法解决,因为我既不了解 java 也不了解 C,而那t是那里使用的 2 种语言
You can try changing in the yolo.cpp
file ex.extract("out0", out);
out0
out1
out2
. When I make changes based on three output name in the .param
file, it can be work. also the input name in0
But another problem arises, the detection results were terrible
from ncnn-android-yolov7.
I have the same problem ,I get video feed but no detections
from ncnn-android-yolov7.
Have you solved it?I have the same problem
from ncnn-android-yolov7.
No, and I won't be able to solve it myself because I know neither java nor C, and those are the 2 languages used there
from ncnn-android-yolov7.
Hi everybody! And big thanks to Xiang-Wuu for the job!!
I have the same problem on android device, with coco it's running fine on phone but when we put our weights and model (.bin and .param) and modify number of classes (nc) and names class, build run correctly but no boundingboxes on screen.
I see a china issue ( https://blog.csdn.net/qq_43268106/article/details/127139216 ) where talking about .param where to delete the first ten layers and modificate the first layer in0 to image but i have no ideas how to do that...
He talk about "generate_proposals" but i don't understand what it's mean!
Thanks to yours feedbacks ;-)
from ncnn-android-yolov7.
Has anyone managed to resolve or at least find out what the problem is? Apparently, the solution only works with yolo's own weights, it doesn't work with custom weights. This greatly limits its use.
from ncnn-android-yolov7.
不,我自己也无法解决,因为我既不了解 java 也不了解 C,而那t是那里使用的 2 种语言
You can try changing in the
yolo.cpp
fileex.extract("out0", out);
out0
out1
out2
. When I make changes based on three output name in the.param
file, it can be work. also the input namein0
But another problem arises, the detection results were terrible
Can you explain your suggestion better?
apparently out0, out1, out seem to be correct and compatible with the parameter file.
What would be the necessary change?
{
ncnn::Mat out;
ex.extract("out0", out);
ncnn::Mat anchors(6);
anchors[0] = 12.f;
anchors[1] = 16.f;
anchors[2] = 19.f;
anchors[3] = 36.f;
anchors[4] = 40.f;
anchors[5] = 28.f;
std::vector<Object> objects8;
generate_proposals(anchors, 8, in_pad, out, prob_threshold, objects8);
proposals.insert(proposals.end(), objects8.begin(), objects8.end());
}
from ncnn-android-yolov7.
from ncnn-android-yolov7.
Install netron first,open the Model file(.param) with netron(https://netron.app/), find the three Convolution layer above the three Permute layers, click to view details, you can see its name ( the location indicated by the red arrow), fill in the three names with the corresponding out0, out1, out2, and you can run the detection.
from ncnn-android-yolov7.
Related Issues (19)
- 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
- "Unsupported Java." and Using Custom Model Successfully HOT 6
- 老哥可以出个yolov5的分类模型推理吗? HOT 1
- 老师麻烦看下一直报这个错是啥问题
- Build error `clang++: error: unknown argument: '-static-openmp'`
- pt->onnx->ncnn HOT 2
- use the deform_conv in yolov7, and use pnnx get a ncnn file, but crush on the phone
- onnx2ncnn.exe problem HOT 14
- about fps HOT 1
- cmake build error HOT 1
- camera resolution
- problem using custom weights HOT 3
- 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.