Giter Club home page Giter Club logo

Comments (9)

scj123-sys avatar scj123-sys commented on July 27, 2024 1

不,我自己也无法解决,因为我既不了解 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.

KeVincechen avatar KeVincechen commented on July 27, 2024

I have the same problem ,I get video feed but no detections

from ncnn-android-yolov7.

scj123-sys avatar scj123-sys commented on July 27, 2024

Have you solved it?I have the same problem

from ncnn-android-yolov7.

N1h1l1sT avatar N1h1l1sT commented on July 27, 2024

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.

UUID81 avatar UUID81 commented on July 27, 2024

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...
image
He talk about "generate_proposals" but i don't understand what it's mean!

Thanks to yours feedbacks ;-)

from ncnn-android-yolov7.

jhony2507 avatar jhony2507 commented on July 27, 2024

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.

jhony2507 avatar jhony2507 commented on July 27, 2024

不,我自己也无法解决,因为我既不了解 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

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.

UUID81 avatar UUID81 commented on July 27, 2024

from ncnn-android-yolov7.

1607722534 avatar 1607722534 commented on July 27, 2024

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.
d76383605cf7d8cf59b92e355051822

from ncnn-android-yolov7.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.