InstanceDiffusion: Instance-level Control for Image Generation

Xudong Wang, Trevor Darrell, Sai Saketh Rambhatla, Rohit Girdhar, Ishan Misra
2/5/2024
cs.CVcs.AIcs.LG

No official code found. Best implementation: frank-xwang/InstanceDiffusion (614 stars, Apache-2.0, last commit 2025-06-17). 1 more below.

Abstract

Text-to-image diffusion models produce high quality images but do not offer control over individual instances in the image. We introduce InstanceDiffusion that adds precise instance-level control to text-to-image diffusion models. InstanceDiffusion supports free-form language conditions per instance and allows flexible ways to specify instance locations such as simple single points, scribbles, bounding boxes or intricate instance segmentation masks, and combinations thereof. We propose three major changes to text-to-image models that enable precise instance-level control. Our UniFusion block enables instance-level conditions for text-to-image models, the ScaleU block improves image fidelity, and our Multi-instance Sampler improves generations for multiple instances. InstanceDiffusion significantly surpasses specialized state-of-the-art models for each location condition. Notably, on the COCO dataset, we outperform previous state-of-the-art by 20.4% AP$_{50}^\text{box}$ for box inputs, and 25.4% IoU for mask inputs.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

[CVPR 2024] Code release for "InstanceDiffusion: Instance-level Control for Image Generation"

61432Shell, PythonFeb 4, 20241 years agoApache-2.0
Apache-2.0
00Shell, PythonJan 2, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{wang2024instancediffusion,
  title  = {InstanceDiffusion: Instance-level Control for Image Generation},
  author = {Xudong Wang and Trevor Darrell and Sai Saketh Rambhatla and Rohit Girdhar and Ishan Misra},
  year   = {2024},
  eprint = {2402.03290},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.03290v1},
  journal = {CVPR 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/2402.03290.svg)](https://codeofpaper.com/paper/2402.03290)

Discussion