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

for dataset & matting result #15

Open
guoyt35 opened this issue Jul 8, 2021 · 3 comments
Open

for dataset & matting result #15

guoyt35 opened this issue Jul 8, 2021 · 3 comments

Comments

@guoyt35
Copy link

guoyt35 commented Jul 8, 2021

HI, I use 【com=alphaimg+(1-alpha)([10, 255,15])】 to get the 'real-world portrait dataset' matting foreground on a green background,but i found the boundary area is not so soft。
comp
comp1
comp2
And I have used your pre-trained model to get my own portrait dataset's matting result, I found that the boundary area performed well, but it missed a lot of inner foreground. My mask is got by using the u^2 net demo.
0003
0005
0007

@yucornetto
Copy link
Owner

Hi,

  1. As mentioned in the paper and this github repo, using original image as foreground usually cannot lead to satisfying results. You can try train one using this repo with random alpha blending, which should not be hard to implement, or some other traditional methods (e.g., closed-form matting) to obtain the foreground color. I am occupied recently but will work on releasing the foreground code/model if I get time.

  2. The results look weird to me. Could you please confirm that the pretrained weight you are using is MGMatting-RWP-100k instead of MGMatting-DIM-100k?

@guoyt35
Copy link
Author

guoyt35 commented Jul 11, 2021

I used the MGMatting-RWP-100k pretrained weight to test it again, it performed better a lot in the inner area, thanks a lot!!!

@hackkhai
Copy link

I tried MGMatting-RWP-100k and still got weird results like he did :(

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