Lune

CVPR2024Top-tier venue

Brush2Prompt: Contextual Prompt Generator for Object Inpainting

Mang Tik Chiu, Yuqian Zhou, Lingzhi Zhang, Zhe Lin, Connelly Barnes, Sohrab Amirghodsi, Eli Shechtman, Humphrey Shi

Abstract

Object inpainting is a task that involves adding objects to real images and seamlessly compositing them. With the recent commercialization of products like Stable Diffusion and Generative Fill, inserting objects into images by using prompts has achieved impressive visual results. In this paper, we propose a prompt suggestion model to simplify the process of prompt input. When the user provides an image and a mask, our model predicts suitable prompts based on the partial contextual information in the masked image, and the shape and location of the mask. Specifically, we introduce a concept-diffusion in the CLIP space that predicts CLIP-text embeddings from a masked image. These diffused embeddings can be directly injected into open-source inpainting models like Stable Diffusion and its variants. Alternatively, they can be decoded into natural language for use in other publicly available applications such as Generative Fill. Our prompt suggestion model demonstrates a balanced accuracy and diversity, showing its capability to be both contextually aware and creatively adaptive.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Probabilistic Models
  • High-Resolution Image Synthesis with Latent Diffusion Models cites Denoising Diffusion Implicit Models
  • IMG: Calibrating Diffusion Models via Implicit Multimodal Guidance cites High-Resolution Image Synthesis with Latent Diffusion Models
  • IMG: Calibrating Diffusion Models via Implicit Multimodal Guidance cites Visual Instruction Tuning
  • IMG: Calibrating Diffusion Models via Implicit Multimodal Guidance cites Learning Transferable Visual Models From Natural Language Supervision
  • IMG: Calibrating Diffusion Models via Implicit Multimodal Guidance cites Denoising Diffusion Probabilistic Models
  • IMG: Calibrating Diffusion Models via Implicit Multimodal Guidance cites Denoising Diffusion Implicit Models
  • Visual Instruction Tuning cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Visual Instruction Tuning cites Learning Transferable Visual Models From Natural Language Supervision
  • What Changed? Detecting and Evaluating Instruction-Guided Image Edits with Multimodal Large Language Models cites High-Resolution Image Synthesis with Latent Diffusion Models
  • What Changed? Detecting and Evaluating Instruction-Guided Image Edits with Multimodal Large Language Models cites Learning Transferable Visual Models From Natural Language Supervision
  • Denoising Diffusion Implicit Models cites Denoising Diffusion Probabilistic Models
  • Towards Enhanced Image Inpainting: Mitigating Unwanted Object Insertion and Preserving Color Consistency cites High-Resolution Image Synthesis with Latent Diffusion Models
  • Towards Enhanced Image Inpainting: Mitigating Unwanted Object Insertion and Preserving Color Consistency cites Denoising Diffusion Probabilistic Models
  • Towards Enhanced Image Inpainting: Mitigating Unwanted Object Insertion and Preserving Color Consistency cites Denoising Diffusion Implicit Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. IMG: Calibrating Diffusion Models via Implicit Multimodal GuidanceJiayi Guo, Chuanhao Yan, Xingqian Xu, Yulin Wang et al.ICCV 2025 · 4 citations
  2. What Changed? Detecting and Evaluating Instruction-Guided Image Edits with Multimodal Large Language ModelsLorenzo Baraldi, Davide Bucciarelli, Federico Betti, Marcella Cornia et al.ICCV 2025 · 3 citations
  3. Towards Enhanced Image Inpainting: Mitigating Unwanted Object Insertion and Preserving Color ConsistencyYikai Wang, Chenjie Cao, Junqiu Yu, Ke Fan et al.CVPR 2025

Builds on24

  1. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  2. Denoising Diffusion Probabilistic ModelsJonathan Ho, Ajay Jain, Pieter AbbeelNeurIPS 2020 · 35,902 citations
  3. High-Resolution Image Synthesis with Latent Diffusion ModelsRobin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser et al.CVPR 2022 · 13,123 citations
  4. Denoising Diffusion Implicit ModelsJiaming Song, Chenlin Meng, Stefano ErmonICLR 2021 · 11,743 citations
  5. Visual Instruction TuningHaotian Liu, Chunyuan Li, Qingyang Wu, Yong Jae LeeNeurIPS 2023 · 11,349 citations

Related papers

  1. SmartBrush: Text and Shape Guided Object Inpainting with Diffusion ModelShaoan Xie, Zhifei Zhang, Zhe Lin, Tobias Hinz et al.CVPR 2023
  2. The CLIP Model is Secretly an Image-to-Prompt ConverterYuxuan Ding, Chunna Tian, Haoxuan Ding, Lingqiao LiuNeurIPS 2023 · 20 citations
  3. Multi-Region Text-Driven Manipulation of Diffusion ImageryYiming Li, Peng Zhou, Jun Sun, Yi XuAAAI 2024 · 4 citations
  4. MTADiffusion: Mask Text Alignment Diffusion Model for Object InpaintingJun Huang, Ting Liu, Yihang Wu, Xiaochao Qu et al.CVPR 2025
  5. CLIPAway: Harmonizing focused embeddings for removing objects via diffusion modelsYigit Ekin, Ahmet Burak Yildirim, Erdem Eren Caglar, Aykut Erdem et al.NeurIPS 2024 · 26 citations
Dusk over the sea between two cliffs drawn in fine vertical lines