Add-it: Training-Free Object Insertion in Images With Pretrained Diffusion Models

Yoad Tewel, Rinon Gal, Dvir Samuel, Yuval Atzmon, Lior Wolf +1 more
11/11/2024
cs.CVcs.AIcs.GR

No official code found. Best implementation: mihirp1998/Add-it (34 stars, Apache-2.0, last commit 2025-03-04).

Abstract

Adding Object into images based on text instructions is a challenging task in semantic image editing, requiring a balance between preserving the original scene and seamlessly integrating the new object in a fitting location. Despite extensive efforts, existing models often struggle with this balance, particularly with finding a natural location for adding an object in complex scenes. We introduce Add-it, a training-free approach that extends diffusion models' attention mechanisms to incorporate information from three key sources: the scene image, the text prompt, and the generated image itself. Our weighted extended-attention mechanism maintains structural consistency and fine details while ensuring natural object placement. Without task-specific fine-tuning, Add-it achieves state-of-the-art results on both real and generated image insertion benchmarks, including our newly constructed "Additing Affordance Benchmark" for evaluating object placement plausibility, outperforming supervised methods. Human evaluations show that Add-it is preferred in over 80% of cases, and it also demonstrates improvements in various automated metrics.

View on arXivView PDF

Code Implementations(1)

mihirp1998/Add-itCommunity71%
Apache-2.0

Implementation of Add-it: Training-Free Object Insertion in Images With Pretrained Diffusion Models

342PythonMar 2, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{tewel2024addit,
  title  = {Add-it: Training-Free Object Insertion in Images With Pretrained Diffusion Models},
  author = {Yoad Tewel and Rinon Gal and Dvir Samuel and Yuval Atzmon and Lior Wolf and Gal Chechik},
  year   = {2024},
  eprint = {2411.07232},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.07232v2},
  journal = {ICLR 2024 2024}
}

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/2411.07232.svg)](https://codeofpaper.com/paper/2411.07232)

Discussion