-
Notifications
You must be signed in to change notification settings - Fork 262
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 preduce the trimap? #26
Comments
good question, refer to #5 |
You can use the "Robust Matting" demo to produce the trimap. |
@rainsun1 could you put a link of code here so that we can have a try? I searched for the code, it seemed 'robust matting' algorithm also need trimap to produce final result. |
Here is a robust matting demo, you could load an image and then create a trimap yourself by the brushes and inpainting. |
@rainsun1 many thanks for sharing this, actually, it'll be better if the trimap can be automatically generated so that the whole process can be automatic. recently, i found a useful website which can do bg removal all in automation: http://remove.bg |
@tsing90 A paper named "Semantic Human Matting" is in this automatic trimap way. |
@rainsun1 many thanks, that's what I need. unfortunately, the big datasets shown in that paper are not available for us. that kind of big datasets is essential for training a good model. |
@tsing90 yes, but can you find some other implementations on "Semantic Human Matting" on github? |
remove.bg,so wonderful |
@wodsoe that's our benchmark from industry ;) |
|
@tsing90 you can use Deep Lab v3+(https://github.com/tensorflow/models/blob/master/research/deeplab/deeplab_demo.ipynb) to get segmentation mask and then apply trimap generator to produce trimaps. |
@farazBhatti thanks for your suggestion. actually I've already tried its xception model which is good to get decent masks. To get trimaps, it's enough just by doing dilating and eroding. The key problem is that the masks we got from semantic segmentation (like deeplab v3+) is binary, its quality is lower than alpha matting |
@tsing90, yes true we only need medium quality segmentation mask to get trimap and from that trimap along with original colored image alpha matte is predicted. Alpha matte segmented image will always be superior to any other segmented mask , but we really don't need that good quality of segmented mask to predict alpha matte. |
Yes it could be the result of jpg compression quality. By the way is there any link to this data( |
@farazBhatti I got them from the author, due to license issue, you have to contact the author of that paper |
@tsing90 Hi, I'm re-implementing the work nowadays. Could you please share some details of your tests. Hope to have a talk, my email 931026752@qq.com |
@xaibeing Hi, I'm also doing segmentation with mask RCNN and now I'm trying to use image matting to improve edge identification. I would like to private message you because now I have some trouble and maybe discussing could help both, if you want this is my email: sergio.17mena@gmail.com |
I do some test but didn't get result as good as the images shown in the README.md.
I think trimap have a huge impact to the result. I use Mask RCNN to generator segmentation and than the trimap.
Could you tell how do you produce the trimap in the README.md demo images ?
Thanks!
The text was updated successfully, but these errors were encountered: