Coder Social home page Coder Social logo

Comments (4)

HyperScypion avatar HyperScypion commented on June 23, 2024

I've the same issue and I also think it's problem with compatibility or ncnn

from ncnn-android-yolox.

HyperScypion avatar HyperScypion commented on June 23, 2024

Hey I found some kind of the solution that worked for me. Use this version of the ncnn library https://github.com/Tencent/ncnn/releases/tag/20210525 and convert model base on it. The first issue that state this problem is from April 2021 so maybe there is a bug or some kind of problems with libraries which are from April or later.

from ncnn-android-yolox.

icyclv avatar icyclv commented on June 23, 2024

Hey,recently I tried it.I also found that my model didn't seem to work.
The way I deal with it is first change the Line 344 in yolox.cpp with

ncnn::Mat in = ncnn::Mat::from_pixels_resize(rgb.data, ncnn::Mat::PIXEL_RGB2BGR, img_w, img_h, w, h);

Note that is PIXEL_RGB2BGR

and second delete the Line 355 with in_pad.substract_mean_normalize(mean_vals, norm_vals); .

from ncnn-android-yolox.

danurrahmajati avatar danurrahmajati commented on June 23, 2024

thankyou very much, I know there is something that I need to change in yolox.cpp, but I don't know which one to make the code work, my guest around line 350-400, but still don't understand what I suppose to do, btw you are awesome

from ncnn-android-yolox.

Related Issues (20)

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.