BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion

Xu Ju, Xian Liu, Xintao Wang, Yuxuan Bian, Ying Shan +1 more
2/14/2026

No official code found. Best implementation: TencentARC/BrushNet (1,729 stars, last commit 2024-12-17).

Abstract

Image inpainting, the process of restoring corrupted images, has seen significant advancements with the advent of diffusion models (DMs). Despite these advancements, current DM adaptations for inpainting, which involve modifications to the sampling strategy or the development of inpainting-specific DMs, frequently suffer from semantic inconsistencies and reduced image quality. Addressing these challenges, our work introduces a novel paradigm: the division of masked image features and noisy latent into separate branches. This division dramatically diminishes the model's learning load, facilitating a nuanced incorporation of essential masked image information in a hierarchical fashion. Herein, we present BrushNet, a novel plug-and-play dual-branch model engineered to embed pixel-level masked image features into any pre-trained DM, guaranteeing coherent and enhanced image inpainting outcomes. Additionally, we introduce BrushData and BrushBench to facilitate segmentation-based inpainting training and performance assessment. Our extensive experimental analysis demonstrates BrushNet's superior performance over existing models across seven key metrics, including image quality, mask region preservation, and textual coherence.

View on arXivView PDF

Code Implementations(1)

[ECCV 2024] The official implementation of paper "BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion"

1,729144Python, MakefileMar 10, 20241 years agoNOASSERTION
diffusiondiffusion-modelseccveccv2024image-inpainting+1 more

Similar Papers

Cite this paper

@article{ju2026brushnet,
  title  = {BrushNet: A Plug-and-Play Image Inpainting Model with Decomposed Dual-Branch Diffusion},
  author = {Xu Ju and Xian Liu and Xintao Wang and Yuxuan Bian and Ying Shan and Qiang Xu},
  year   = {2026},
  eprint = {2403.06976},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2403.06976},
  journal = {ECCV 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/2403.06976.svg)](https://codeofpaper.com/paper/2403.06976)

Discussion