GithubHelp home page GithubHelp logo

Comments (4)

ppogg avatar ppogg commented on June 11, 2024

good,If you want to know how those params came about, I'll give you some information and you should get the idea

ncnn的norm和mean计算公式:https://github.com/Tencent/ncnn/wiki/FAQ-ncnn-produce-wrong-result#pre-process
coco的mean和norm:
mean=【120.105,114.24,104.04】
norm=【0.0167,0.0164,0.0174】

ncnn操作参数权重表:https://github.com/Tencent/ncnn/wiki/operation-param-weight-table

from ncnn-yolov4-int8.

txdat avatar txdat commented on June 11, 2024

I have a question, in ncnn's document, mean and norm are the values you passed to Mat::substract_mean_normalize(), it means mean={0, 0, 0} and norm={1 / 255.f, 1 / 255.f, 1 / 255.f} with yolov4, not above values. Thanks!

from ncnn-yolov4-int8.

ppogg avatar ppogg commented on June 11, 2024

这个是可以改的,不唯一,你可以多试验一下,但是你要确保做校验表的mean和norm要和你cpp代码里面的mean和norm一致

from ncnn-yolov4-int8.

ppogg avatar ppogg commented on June 11, 2024

I have a question, in ncnn's document, mean and norm are the values you passed to Mat::substract_mean_normalize(), it means mean={0, 0, 0} and norm={1 / 255.f, 1 / 255.f, 1 / 255.f} with yolov4, not above values. Thanks!

并且,很有趣的是,不同的mean和norm会影响模型量化后的速度,这个你可以尝试下,是个非常sexy的点

from ncnn-yolov4-int8.

Related Issues (4)

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.