Bridging Composite and Real: Towards End-to-end Deep Image Matting

30 Oct 2020  ·  Jizhizi Li, Jing Zhang, Stephen J. Maybank, DaCheng Tao ·

Extracting accurate foregrounds from natural images benefits many downstream applications such as film production and augmented reality. However, the furry characteristics and various appearance of the foregrounds, e.g., animal and portrait, challenge existing matting methods, which usually require extra user inputs such as trimap or scribbles. To resolve these problems, we study the distinct roles of semantics and details for image matting and decompose the task into two parallel sub-tasks: high-level semantic segmentation and low-level details matting. Specifically, we propose a novel Glance and Focus Matting network (GFM), which employs a shared encoder and two separate decoders to learn both tasks in a collaborative manner for end-to-end natural image matting. Besides, due to the limitation of available natural images in the matting task, previous methods typically adopt composite images for training and evaluation, which result in limited generalization ability on real-world images. In this paper, we investigate the domain gap issue between composite images and real-world images systematically by conducting comprehensive analyses of various discrepancies between the foreground and background images. We find that a carefully designed composition route RSSN that aims to reduce the discrepancies can lead to a better model with remarkable generalization ability. Furthermore, we provide a benchmark containing 2,000 high-resolution real-world animal images and 10,000 portrait images along with their manually labeled alpha mattes to serve as a test bed for evaluating matting model's generalization ability on real-world images. Comprehensive empirical studies have demonstrated that GFM outperforms state-of-the-art methods and effectively reduces the generalization error. The code and the datasets will be released at https://github.com/JizhiziLi/GFM.

PDF Abstract

Datasets


Introduced in the Paper:

BG-20k

Used in the Paper:

MS COCO AIM-500 P3M-10k AM-2K

Results from the Paper


Task Dataset Model Metric Name Metric Value Global Rank Result Benchmark
Image Matting AIM-500 GFM SAD 52.66 # 3
MSE 0.0213 # 3
MAD 0.0313 # 3
Conn. 52.69 # 3
Grad. 46.11 # 3
Image Matting AM-2K GFM(r') SAD 9.66 # 2
MSE 0.0024 # 1
MAD 0.0056 # 2
Image Matting AM-2K GFM(r2b) SAD 10.24 # 3
MSE 0.0028 # 3
MAD 0.0060 # 4
Image Matting AM-2K GFM(r) SAD 10.89 # 5
MSE 0.0029 # 4
MAD 0.0064 # 5
Image Matting AM-2K GFM(d) SAD 10.26 # 4
MSE 0.0029 # 4
MAD 0.0059 # 3
Image Matting P3M-10k GFM SAD 13.20 # 4
MSE 0.0050 # 4
MAD 0.0080 # 4

Methods


No methods listed for this paper. Add relevant methods here