atlas

Research map / Image generation / Text-to-image diffusion

Brush2Prompt: Contextual Prompt Generator for Object Inpainting

CVPR 2024 · Image generation › Text-to-image diffusion · approach: Multi-subject personalization · 2 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Brush2Prompt trains a CLIP-space diffusion prior that maps masked-image embeddings to CLIP-text embeddings (CatDiff/CapDiff) plus decoders, suggesting diverse, context- and mask-aware prompts for object inpainting without user text.

Problem

Users must write text prompts to insert objects via text-guided inpainting, and empty or vague prompts default to dominant background-like content; there is no way to suggest contextually plausible and diverse object prompts from an image and mask.

Approach

Reformulate object-prompt suggestion as a stochastic generative problem: a diffusion prior in CLIP space predicts CLIP-text embeddings from global-local CLIP patch embeddings of the masked image, with mask-shape augmentation for mask awareness, plus a classifier (CatDiff) or GPT-2 decoder (CapDiff) to turn embeddings into text.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use CapDiff instead of generic visual-language modelsObject prompt generation · OpenImages Brush2PromptBench, tight maskBLEU: 0.071 -> 0.177Helped
use CapDiff instead of generic visual-language modelsObject prompt generation · OpenImages Brush2PromptBench, BBoxBERTScore: 0.691 -> 0.715Helped
use CapDiff instead of generic visual-language modelsObject prompt generation · OpenImages Brush2PromptBench, tight maskDist-1: 0.998 -> 0.845Hurt
use both global and local image embeddings instead of global embeddings only (ablation)CatDiff · COCO classification, regular maskK-1 accuracy: 0.681 -> 0.700Helped
use both global and local image embeddings instead of local embeddings only (ablation)CatDiff · COCO classification, regular maskK-1 accuracy: 0.681 -> 0.700Helped
combine global and local image embeddings (ablation)CatDiff · COCO classification, regular maskK-50 entropy: 0.884 -> 0.815; 0.845 -> 0.815Mixed
add the CatDiff diffusion prior (ablation)Category prediction · COCO classification, tight maskK-50 entropy: 0.043 -> 0.815Helped
add the CatDiff diffusion prior (ablation)Category prediction · COCO classification, tight maskK-1 accuracy: 0.847 -> 0.700Hurt
add the CatDiff diffusion prior (ablation)Category prediction · COCO classification, tight maskK-5 accuracy: 0.847 -> 0.864Helped
add the CapDiff diffusion prior (ablation)Caption generation · OpenImages Brush2PromptBench, tight maskDiv-4: 0.808 -> 0.858Helped
add the CapDiff diffusion prior (ablation)Caption generation · OpenImages Brush2PromptBench, tight maskBLEU: 0.249 -> 0.177Hurt
add the CapDiff diffusion prior (ablation)Caption generation · OpenImages Brush2PromptBench, tight maskSelf-BLEU: 0.215 -> 0.169Helped

Surprising findings

Limitations

Experimental setup

Datasets: COCO OpenImages

Benchmarks: COCO classification Brush2PromptBench (OpenImages test subset)

Metrics: K-1 accuracy K-5 accuracy K-50 entropy BLEU ROUGE BERTScore Dist-1 Self-BLEU Div-4

Baselines: BLIP-VQA InstructBLIP LLaVA-Resample LLaVA-5-Prompt deterministic transformer (no CatDiff) CapDiff without diffusion prior

Builds on: DALL-E 2 diffusion prior CLIP DDIM ClipCap-style prefix decoding SmartBrush

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy