GithubHelp home page GithubHelp logo

Image Border about rembg HOT 7 CLOSED

danielgatis avatar danielgatis commented on August 18, 2024 2
Image Border

from rembg.

Comments (7)

jjangga0214 avatar jjangga0214 commented on August 18, 2024 4

@danielgatis

Hi,
Try this:
https://github.com/danielgatis/rembg#advance-usage

This does not exist anymore.
Is it moved to https://github.com/danielgatis/rembg/blob/main/USAGE.md?
And was what you especially suggest alpha metting?
Thanks.

from rembg.

danielgatis avatar danielgatis commented on August 18, 2024 3

Hi,
Try this:
https://github.com/danielgatis/rembg#advance-usage

from rembg.

tomstevelfq avatar tomstevelfq commented on August 18, 2024 2

Hi,ashkaps,
Have you found the reason why the pixel degradation on the contours after alpha matting?

from rembg.

alfonsmartinez avatar alfonsmartinez commented on August 18, 2024

works perfectly in this case.

thank you very much
good work

from rembg.

ashkaps avatar ashkaps commented on August 18, 2024

Hello @danielgatis thank you for the awesome work. This is great.
While I was trying this out I struggled with a few issues initially where I would see a fringe on the border of the object.
After your implementation of alpha matting, this issue got resolved but I am starting to see pixel degradation on the contours.
I was wondering how you ended up with 240 - 10 -10? I have tried a few different combinations and each fix one set of images and break the other set :D.
In your opinion what is the best way to handle all varied set of images?

Images - https://drive.google.com/file/d/1CK_pIsH9jX09xC4IyIF8Jkc0XclL3fju/view?usp=sharing

from rembg.

ashkaps avatar ashkaps commented on August 18, 2024

hey @danielgatis thanks for reaching out to the pymatting team. Seeing their response there really isn't a general way to predict the boundaries of an object even with a neural network.
Considering a neural network will be trained on a particular usecase.
I have been checking out results from a site called remove.bg and their results look good in most cases. Appears that they are somehow deleting the boundary pixels or more so they have a crisp different in background and foreground. They are actually chipping away a minute portion of the image. Thoughts?

from rembg.

mingkang1993 avatar mingkang1993 commented on August 18, 2024

嗨,ashkaps, 您找到 alpha matting 后轮廓上的像素退化的原因了吗?

epsilon=1e-5, Try this

from rembg.

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.