Inst-Inpaint: Instructing to Remove Objects with Diffusion Models

Ahmet Burak Yildirim, Vedat Baday, Erkut Erdem, Aykut Erdem, Aysegul Dundar
4/6/2023
cs.CV

No official code found. Best implementation: abyildirim/inst-inpaint (384 stars, MIT, last commit 2025-12-09).

Abstract

Image inpainting task refers to erasing unwanted pixels from images and filling them in a semantically consistent and realistic way. Traditionally, the pixels that are wished to be erased are defined with binary masks. From the application point of view, a user needs to generate the masks for the objects they would like to remove which can be time-consuming and prone to errors. In this work, we are interested in an image inpainting algorithm that estimates which object to be removed based on natural language input and removes it, simultaneously. For this purpose, first, we construct a dataset named GQA-Inpaint for this task. Second, we present a novel inpainting framework, Inst-Inpaint, that can remove objects from images based on the instructions given as text prompts. We set various GAN and diffusion-based baselines and run experiments on synthetic and real image datasets. We compare methods with different evaluation metrics that measure the quality and accuracy of the models and show significant quantitative and qualitative improvements.

View on arXivView PDF

Code Implementations(1)

MIT

A novel inpainting framework that can remove objects from images based on the instructions given as text prompts.

38428PythonApr 2, 202310 months agoMIT
diffusion-modelsgqa-inpaintinpaintinginpainting-datasetlatent-diffusion-models

Similar Papers

Cite this paper

@article{yildirim2023instinpaint,
  title  = {Inst-Inpaint: Instructing to Remove Objects with Diffusion Models},
  author = {Ahmet Burak Yildirim and Vedat Baday and Erkut Erdem and Aykut Erdem and Aysegul Dundar},
  year   = {2023},
  eprint = {2304.03246},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.03246v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.03246.svg)](https://codeofpaper.com/paper/2304.03246)

Discussion