This repository includes the non-official pytorch implementation of deep image matting.
model | SAD | MSE | Grad | Conn | link |
---|---|---|---|---|---|
stage0-paper | 59.6 | 0.019 | 40.5 | 59.3 | |
stage1-paper | 54.6 | 0.017 | 36.7 | 55.3 | |
stage0-our | 56.01 | 0.0173 | 33.71 | 57.57 | |
stage1-our | 54.42 | 0.0175 | 35.01 | 54.85 | download |
Download our model to the ./model
and run the following command. Then the predict alpha mattes will locate in the folder ./result/example/pred
.
python core/demo.py
Please concat author for available.
Run the following command and the composite training and test dataset will locate in Combined_Dataset/Training_set/comp
and Combined_Dataset/Test_set/comp
, Combined_Dataset
is the extracted folder of Adobe-Deep-Image-Matting-Dataset
python tools/composite.py
Run the following command and the pretrained model will locate in ./model/vgg_state_dict.pth
python tools/chg_model.py
Run the following command and start the training
bash train.sh
Run the following command and start the test of Adobe-1k-Composite-Dataset
bash deploy.sh
Please eval with official Matlab Code. and get the SAD, MSE, Grad Conn.
Running model is Stage1-SAD=57.1, please click to view whole images.
Image | Trimap | Pred-Alpha | GT-Alpha |
---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
As covered by the ADOBE IMAGE DATASET LICENSE AGREEMENT, the pre-trained models included in this repository can only be used and distributed for non-commercial purposes.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。