Giter VIP home page Giter VIP logo

Comments (5)

afaq-ahmad avatar afaq-ahmad commented on September 10, 2024

Hi xuanhan863, facing the same issue, did you found any solution?

from unet-gan-matting.

antithing avatar antithing commented on September 10, 2024

Same here! Did either of you find a solution for this?

from unet-gan-matting.

afaq-ahmad avatar afaq-ahmad commented on September 10, 2024

python3 eval.py ./unet-gan-matting-master/scripts/data/input/0_0.jpg ./unet-gan-matting-master/scripts/data/matting/target/0.png ./unet-gan-matting-master/scripts/data/output --checkpoint -1

this gives some results

from unet-gan-matting.

julesd16 avatar julesd16 commented on September 10, 2024

Hello!
alpha = cv2.split(foreground)[3] change to alpha = cv2.split(foreground)[2].

from unet-gan-matting.

theadventureoflinko avatar theadventureoflinko commented on September 10, 2024

It seems that trimap image has to be an image which have an alpha channel.
In my case, my trimap is a grayscale image, so I changed

alpha = cv2.split(foreground)[3]

to

alpha = foreground

I'm not sure that it is correct way, because output image is still not clean.

from unet-gan-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.