HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Referring Image Matting

Jizhizi Li; Jing Zhang; Dacheng Tao

Referring Image Matting

Abstract

Different from conventional image matting, which either requires user-defined scribbles/trimap to extract a specific foreground object or directly extracts all the foreground objects in the image indiscriminately, we introduce a new task named Referring Image Matting (RIM) in this paper, which aims to extract the meticulous alpha matte of the specific object that best matches the given natural language description, thus enabling a more natural and simpler instruction for image matting. First, we establish a large-scale challenging dataset RefMatte by designing a comprehensive image composition and expression generation engine to automatically produce high-quality images along with diverse text attributes based on public datasets. RefMatte consists of 230 object categories, 47,500 images, 118,749 expression-region entities, and 474,996 expressions. Additionally, we construct a real-world test set with 100 high-resolution natural images and manually annotate complex phrases to evaluate the out-of-domain generalization abilities of RIM methods. Furthermore, we present a novel baseline method CLIPMat for RIM, including a context-embedded prompt, a text-driven semantic pop-up, and a multi-level details extractor. Extensive experiments on RefMatte in both keyword and expression settings validate the superiority of CLIPMat over representative methods. We hope this work could provide novel insights into image matting and encourage more follow-up studies. The dataset, code and models are available at https://github.com/JizhiziLi/RIM.

Code Repositories

jizhizili/rim
Official
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
referring-image-matting-expression-based-onCLIPMat (ViT-B/16)
MAD: 0.0273
MAD(E): 0.0273
MSE: 0.0245
MSE(E): 0.0260
SAD: 47.97
SAD(E): 50.84
referring-image-matting-expression-based-onCLIPMat (ViT-L/14)
MAD: 0.0238
MAD(E): 0.0254
MSE: 0.0212
MSE(E): 0.0226
SAD: 42.05
SAD(E): 44.77
referring-image-matting-keyword-based-onCLIPMat (ViT-B/16)
MAD: 0.0057
MAD(E): 0.0059
MSE: 0.0028
MSE(E): 0.0029
SAD: 9.91
SAD(E): 10.41
referring-image-matting-keyword-based-onCLIPMat (ViT-L/14)
MAD: 0.0049
MAD(E): 0.0051
MSE: 0.0022
MSE(E): 0.0023
SAD: 8.51
SAD(E): 8.98
referring-image-matting-refmatte-rw100-onCLIPMat (ViT-L/14)
MAD: 0.0510
MAD(E): 0.0505
MSE: 0.0488
MSE(E): 0.0483
SAD: 88.52
SAD(E): 87.92
referring-image-matting-refmatte-rw100-onCLIPMat (ViT-B/16)
MAD: 0.0636
MAD(E): 0.0635
MSE: 0.0614
MSE(E): 0.0612
SAD: 110.66
SAD(E): 110.63

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp