CLIPAway: Harmonizing Focused Embeddings for Removing Objects via Diffusion Models

Yigit Ekin, Ahmet Burak Yildirim, Erdem Çağlar, Aykut Erdem, Erkut Erdem +1 more
2/3/2026

No official code found. Best implementation: YigitEkin/CLIPAway (106 stars, MIT, last commit 2026-03-19).

Abstract

Advanced image editing techniques, particularly inpainting, are essential for seamlessly removing unwanted elements while preserving visual integrity. Traditional GAN-based methods have achieved notable success, but recent advancements in diffusion models have produced superior results due to their training on large-scale datasets, enabling the generation of remarkably realistic inpainted images. Despite their strengths, diffusion models often struggle with object removal tasks without explicit guidance, leading to unintended hallucinations of the removed object. To address this issue, we introduce CLIPAway, a novel approach leveraging CLIP embeddings to focus on background regions while excluding foreground elements. CLIPAway enhances inpainting accuracy and quality by identifying embeddings that prioritize the background, thus achieving seamless object removal. Unlike other methods that rely on specialized training datasets or costly manual annotations, CLIPAway provides a flexible, plug-and-play solution compatible with various diffusion-based inpainting techniques.

View on arXivView PDF

Code Implementations(1)

YigitEkin/CLIPAwayCommunity100%
MIT

[NeurIPS 2024] Official Implementation of CLIPAway

1067Shell, PythonJun 3, 20247 months agoMIT
diffusion-modelsinpaintingobject-removalstable-diffusion

Similar Papers

Cite this paper

@article{ekin2026clipaway,
  title  = {CLIPAway: Harmonizing Focused Embeddings for Removing Objects via Diffusion Models},
  author = {Yigit Ekin and Ahmet Burak Yildirim and Erdem Çağlar and Aykut Erdem and Erkut Erdem and Aysegul Dundar},
  year   = {2026},
  eprint = {2406.09368},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.09368},
  url    = {https://arxiv.org/abs/2406.09368},
  journal = {NEURIPS 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/2406.09368.svg)](https://codeofpaper.com/paper/2406.09368)

Discussion