Adding Conditional Control to Text-to-Image Diffusion Models

Lvmin Zhang, Anyi Rao, Maneesh Agrawala
2/14/2026

No official code found. Best implementation: lllyasviel/ControlNet (34,002 stars, Apache-2.0, last commit 2024-02-25). 1 more below.

Abstract

We present ControlNet, a neural network architecture to add spatial conditioning controls to large, pretrained text-to-image diffusion models. ControlNet locks the production-ready large diffusion models, and reuses their deep and robust encoding layers pretrained with billions of images as a strong backbone to learn a diverse set of conditional controls. The neural architecture is connected with "zero convolutions" (zero-initialized convolution layers) that progressively grow the parameters from zero and ensure that no harmful noise could affect the finetuning. We test various conditioning controls, e.g., edges, depth, segmentation, human pose, etc., with Stable Diffusion, using single or multiple conditions, with or without prompts. We show that the training of ControlNets is robust with small (<50k) and large (>1m) datasets. Extensive results show that ControlNet may facilitate wider applications to control image diffusion models.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Let us control diffusion models!

34,0023,015Shell, PythonFeb 1, 20232 years agoApache-2.0
MIT

An implementation of ControlNet as described in "Adding Conditional Control to Text-to-Image Diffusion Models" published by Zhang et al.

183PythonJul 8, 20241 years agoMIT
controllable-generationcontrolnetdiffusiondiffusion-modelsgenerative-ai

Similar Papers

Cite this paper

@article{zhang2026adding,
  title  = {Adding Conditional Control to Text-to-Image Diffusion Models},
  author = {Lvmin Zhang and Anyi Rao and Maneesh Agrawala},
  year   = {2026},
  eprint = {2302.05543},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2302.05543},
  journal = {ICCV 2023 2023}
}

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

Discussion