Git Product home page Git Product logo

Comments (15)

cmdbug avatar cmdbug commented on May 25, 2024

tnn input : scale * input + bias
If I remember correctly, the fourth is alpha
You need to view how the corresponding training model handles the input during training

from tnn_demo.

henbucuoshanghai avatar henbucuoshanghai commented on May 25, 2024

tks I know scale * input + bias.
the fourth is alpha?means?

from tnn_demo.

henbucuoshanghai avatar henbucuoshanghai commented on May 25, 2024

when my input is five dims,I need five bias and scales??

from tnn_demo.

cmdbug avatar cmdbug commented on May 25, 2024

rgba

from tnn_demo.

henbucuoshanghai avatar henbucuoshanghai commented on May 25, 2024

from tnn_demo.

cmdbug avatar cmdbug commented on May 25, 2024

该项目示例适合使用以下步骤:
#1
其它方式需要自己改写后处理。
scale/bias是与你训练模型的输入有关。比如你训练模型输入是0-1的值,那么你在tnn的转换后的输入也应该是0-1。

from tnn_demo.

henbucuoshanghai avatar henbucuoshanghai commented on May 25, 2024

from tnn_demo.

cmdbug avatar cmdbug commented on May 25, 2024

如果已经处理了,那也应该是 scale 是 1,bias 是 0

from tnn_demo.

cmdbug avatar cmdbug commented on May 25, 2024

该项目是 4 维输入,请认真看 #1 说明过程,否则请自行改本项目的后处理。

from tnn_demo.

henbucuoshanghai avatar henbucuoshanghai commented on May 25, 2024

tks 热心的回复

from tnn_demo.

henbucuoshanghai avatar henbucuoshanghai commented on May 25, 2024

你好 回复rgba 是什么意思呢? 自己的数据必须unsigned 变成数组 传进tnn?

from tnn_demo.

cmdbug avatar cmdbug commented on May 25, 2024

input_cvt_param.scale = {1.0 / 255, 1.0 / 255, 1.0 / 255, 0.0};
input_cvt_param.bias = {0.0, 0.0, 0.0, 0.0};
4个参数是 rgba

from tnn_demo.

henbucuoshanghai avatar henbucuoshanghai commented on May 25, 2024

from tnn_demo.

cmdbug avatar cmdbug commented on May 25, 2024

我输入都是rgba的4维图像,不是图像还是5维的就不懂了,建议去tnn问。

from tnn_demo.

henbucuoshanghai avatar henbucuoshanghai commented on May 25, 2024

from tnn_demo.

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.