Skip to content
r.

GFM

JizhiziLi/GFM · Public GitHub repository

[IJCV 2022] Bridging Composite and Real: Towards End-to-end Deep Image Matting

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

GFM live demo screenshot
Captured from the live demo · 2026-11-02

About this project

Author-written excerpt from the project README.

This is the official repository of the paper Bridging Composite and Real: Towards End-to-end Deep Image Matting.

This repository contains the code, datasets, models, test results and a video demo for the paper Bridging Composite and Real: Towards End-to-end Deep Image Matting. 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 image matting. We also establish a novel Animal Matting dataset (AM-2k) to serve for end-to-end matting task. Furthermore, we investigate the domain gap issue between composition images and natural images systematically, propose a carefully designed…

We have released the train code, the test code, the datasets, and the pretrained models in this code-base page. We have also prepared a Google Colab demo and inference code for you to test on our pre-trained models on your own sample images. For the datasets AM-2k and BG-20k, please follow the sections AM-2k and BG-20k to access. Besides, we prepare a video demo (YouTube | bilibili) to illustrate the motivation, the network, the datasets, and the test results on an animal video

Requirements and intended audience

This is the official repository of the paper Bridging Composite and Real: Towards End-to-end Deep Image Matting.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-11-02. Source: https://github.com/JizhiziLi/GFM/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2023-04-13. A published release has not been recorded. These dates do not guarantee ongoing maintenance.

Technologies
Python
Licence
MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-20. This does not test every feature.

Browse related categories