Giter Club home page Giter Club logo

Comments (3)

senguptaumd avatar senguptaumd commented on August 22, 2024 1

Segmentation mask, obtained by Deeplab, often misses the last few (say 25) rows of the image, even if there is a foreground. Then the matting result also seems to miss those last few rows and the foreground appears to be floating. This is a small hack to fix the segmentation. We delete the last 25 rows of the segmentation, then do copyBorder() to make sure the segmentation mask extends till the last row of the image. Then we erode-dilate the segmentation, pass it through Gaussian filtering to obtain a soft segmentation, aka probability of foreground. All we need is to make sure that the soft-segmentation input to the network is 1 when the foreground is present in the last few rows.

from background-matting.

senguptaumd avatar senguptaumd commented on August 22, 2024 1

Yes, it happens for certain cases only, e.g. when a person is standing and the legs are in the last rows of the image. I noticed that in those cases the segmentation does not extend all the way to the last row of the image.

from background-matting.

gordon-lim avatar gordon-lim commented on August 22, 2024

Does this happen with DeepLab for only certain images? It seems to work with the images in your sample_data. Or am I misunderstanding what you mean by "misses the last few".

from background-matting.

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.