foamliu/Deep-Image-Matting-PyTorch

Question about data(alpha or trimp)

Closed this issue · 1 comments

Thank you very much for making this project open source. I have a question and I hope to get your answer.

In the demo.py
We should provide two images:

  1. image(put in data/fg_test),I temporarily call it 1.png
  2. imges's alpha (put in data/mask_test),I temporarily call it 1_alpha.png

Does 1_alpha.png must be obtained manually by PS?
Is there any way to get it automatically?
So we only need to upload a picture of 1.png.

Yes, trimap is necessary in this settings.