GithubHelp home page GithubHelp logo

关于网络输出 about u-2-net HOT 6 OPEN

xuebinqin avatar xuebinqin commented on May 14, 2024
关于网络输出

from u-2-net.

Comments (6)

xuebinqin avatar xuebinqin commented on May 14, 2024

from u-2-net.

zcswdt avatar zcswdt commented on May 14, 2024

抠图不需要轮廓坐标,将图像与而二值图的0对应的像素设为0即可,或者将二值图与图像concat保存为四通道RGB-A,如果需要获取轮廓,可以用opencv的findContour函数提取。

谢谢作者的指导,代码预测产生的二值图,好像并不是完全二值图,有其他灰度值,如红框所示:
您说的那个二值图是测试代码哪里能得到呢?
image

from u-2-net.

xuebinqin avatar xuebinqin commented on May 14, 2024

是的,这个图是probabilty map, 你需要自己二值化它。e.g. pd = pd > 0.5 or(pd = pd >=128 if the pixel values are in [0,255])

from u-2-net.

zcswdt avatar zcswdt commented on May 14, 2024

是的,这个图是probabilty map, 你需要自己二值化它。e.g. pd = pd > 0.5 or(pd = pd >=128 if the pixel values are in [0,255])

谢谢大佬回复,如沐春风,我理解了。不过您的测试代码里面只拿了d1作为后续保存的输出,其他的还有d2,d3,d4...等,这个d1等都代表什么意思?我没看懂。
image

from u-2-net.

xuebinqin avatar xuebinqin commented on May 14, 2024

from u-2-net.

zcswdt avatar zcswdt commented on May 14, 2024

eature maps得到的probability ma

好的,谢谢作者的耐心指导,非常感谢,祝您一切安好。

from u-2-net.

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.