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

Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion Models

About

Text-to-Image diffusion models have made tremendous progress over the past two years, enabling the generation of highly realistic images based on open-domain text descriptions. However, despite their success, text descriptions often struggle to adequately convey detailed controls, even when composed of long and complex texts. Moreover, recent studies have also shown that these models face challenges in understanding such complex texts and generating the corresponding images. Therefore, there is a growing need to enable more control modes beyond text description. In this paper, we introduce Uni-ControlNet, a unified framework that allows for the simultaneous utilization of different local controls (e.g., edge maps, depth map, segmentation masks) and global controls (e.g., CLIP image embeddings) in a flexible and composable manner within one single model. Unlike existing methods, Uni-ControlNet only requires the fine-tuning of two additional adapters upon frozen pre-trained text-to-image diffusion models, eliminating the huge cost of training from scratch. Moreover, thanks to some dedicated adapter designs, Uni-ControlNet only necessitates a constant number (i.e., 2) of adapters, regardless of the number of local or global controls used. This not only reduces the fine-tuning costs and model size, making it more suitable for real-world deployment, but also facilitate composability of different conditions. Through both quantitative and qualitative comparisons, Uni-ControlNet demonstrates its superiority over existing methods in terms of controllability, generation quality and composability. Code is available at \url{https://github.com/ShihaoZhaoZSH/Uni-ControlNet}.

Shihao Zhao, Dongdong Chen, Yen-Chun Chen, Jianmin Bao, Shaozhe Hao, Lu Yuan, Kwan-Yee K. Wong• 2023

Related benchmarks

TaskDatasetResultRank
SegmentationADE20K
mIoU19.39
52
Image EditingAnyEdit (test)
CLIP Score (Input)0.717
28
Controllable Image GenerationCOCO (test)
Inference Latency (s)12.16
14
Inference EfficiencyInference Efficiency Evaluation
Inference Latency (s)6.96
12
Conditional Image GenerationCOCO (val)
CLIP-T0.506
9
Controllable Image Generation (Canny)COCO 2017 (val)
FID17.79
8
Controllable Image Generation (Style/Content)COCO 2017 (val)
FID23.98
8
Controllable Image Generation (Segmentation)COCO 2017 (val)
FID23.4
8
Controllable Image Generation (Pose)COCO 2017 (val)
FID26.61
8
Pixel-level Spatial Control (Canny)MultiGen-20M
F1 Score27.32
8
Showing 10 of 45 rows

Other info

Code

Follow for update