Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Xuan Ju, Xian Liu, Xintao Wang, Yuxuan Bian, Ying Shan, Qiang Xu• 2024

Related benchmarks

TaskDatasetResultRank
Image InpaintingEditBench free-form masks (val)
ImageReward0.2729
15
Text-guided image inpaintingMSCOCO with layout masks (test)
ImageReward0.2701
15
Object RetextureUHRSD (test)
MSE438.5
14
Image EditingECSSD (test)
MSE361.2
13
Text-Guided Subject-Position Variable Background InpaintingSubject-Position Variable Background Inpainting Dataset based on Pinco 1.0 (test)
FID90.72
10
Image InpaintingBrushBench (test)
IR12.52
5
Image InpaintingBrushBench + EditBench (test)
Semantic Alignment15
5
InpaintingEditBench
IR4.46
5
Conditional Image EditingConstructed dataset (test)
LPIPS0.0817
5
Line-guided Region RedrawingLine-guided Region Redrawing (test)
PSNR16.17
4
Showing 10 of 12 rows

Other info

Follow for update