Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Generated Trimap for an input image ? #13

Open
minkvirparia opened this issue Aug 18, 2023 · 7 comments
Open

How to Generated Trimap for an input image ? #13

minkvirparia opened this issue Aug 18, 2023 · 7 comments

Comments

@minkvirparia
Copy link

I want to get an trimap of the input image, so that I can get foreground image using this two things (input image & corresponding trimap). Actually I want to build an PoC (Proof of Concept) which takes any image and generates its foreground image.

@JingfengYao
Copy link
Member

Maybe you could refer to this issue.

@LukaGiorgadze
Copy link

@minkvirparia Did you solve the problem? I have the same question - how's possible to generate trimap programmatically and not manually?

@JingfengYao
Copy link
Member

If you mean generate from alpha mattes for training or generate from a segmentation map like MatAny, it is possible. However, if you mean automatic object detection, I'm afraid not.

For this purpose, you may refer to the keywords 'human matting'. Here is some great work: RVM(human video matting), SIM(semantic image matting), MODNet(realtime human matting).

@LukaGiorgadze
Copy link

LukaGiorgadze commented Jan 2, 2024

If you mean generate from alpha mattes for training or generate from a segmentation map like MatAny, it is possible. However, if you mean automatic object detection, I'm afraid not.

For this purpose, you may refer to the keywords 'human matting'. Here is some great work: RVM(human video matting), SIM(semantic image matting), MODNet(realtime human matting).

Yes, I mean generate from alpha mattes/maps. I have tools that generate this stuff, but VitMatte requires trimap, so how can I generate trimap from this kind of map?

tmpl5bdony3

@JingfengYao
Copy link
Member

@LukaGiorgadze In ViTMatte, we generate in this way:

### generate trimap

@LukaGiorgadze
Copy link

@LukaGiorgadze In ViTMatte, we generate in this way:

### generate trimap

Thank you @JingfengYao! This is helpful!

I love your work, it's absolutely amazing!

btw I suggest you add a sponsor button so people can sponsor with some bucks 💸

@JingfengYao
Copy link
Member

@LukaGiorgadze Thanks 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants