-
Notifications
You must be signed in to change notification settings - Fork 90
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 generate Trimap? #1
Comments
At the inference stage, trimaps are provided by the Adobe Image Matting dataset. |
From what I see you cannot get matting without a provided Trimap\Segmentation.
I'm trying to find a solution for getting both matting and Trimap for my own images, is this possible? or do I need to combine an additional solution as Detectron or Mask_RCNN to get the Trimap for custom images? |
Yes, our model receives 4-channel input. Using the trimap is a common practice for natural image matting, as the model does not know what is the object of interest. In general, a trimap needed as it can tell such a prior to the model. However, if your applicational scenario is specific, such as portrait matting, it is possible to generate a trimap automatically, e.g., with a segmentation model. Alternatively, you may seek a saliency network to generate trimaps if the foreground is salient against the background. |
@poppinace Thanks for your great work. Would you consider to release the code about how to generate trimaps? |
@wrrJasmine Please take a look at the following pieces of code how I generate the trimaps during training:
Trimaps affect the training a lot! Always check what you generate. Best |
@poppinace thank you a lot |
Hi, Thanks for the implementation, results are really good, and look similar to the paper indeed.
Any suggestion on how to generate Trimap masks?
Also, is there a plan to release training code?
The text was updated successfully, but these errors were encountered: