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

CtrLoRA: An Extensible and Efficient Framework for Controllable Image Generation

About

Recently, large-scale diffusion models have made impressive progress in text-to-image (T2I) generation. To further equip these T2I models with fine-grained spatial control, approaches like ControlNet introduce an extra network that learns to follow a condition image. However, for every single condition type, ControlNet requires independent training on millions of data pairs with hundreds of GPU hours, which is quite expensive and makes it challenging for ordinary users to explore and develop new types of conditions. To address this problem, we propose the CtrLoRA framework, which trains a Base ControlNet to learn the common knowledge of image-to-image generation from multiple base conditions, along with condition-specific LoRAs to capture distinct characteristics of each condition. Utilizing our pretrained Base ControlNet, users can easily adapt it to new conditions, requiring as few as 1,000 data pairs and less than one hour of single-GPU training to obtain satisfactory results in most scenarios. Moreover, our CtrLoRA reduces the learnable parameters by 90% compared to ControlNet, significantly lowering the threshold to distribute and deploy the model weights. Extensive experiments on various types of conditions demonstrate the efficiency and effectiveness of our method. Codes and model weights will be released at https://github.com/xyfJASON/ctrlora.

Yifeng Xu, Zhenliang He, Shiguang Shan, Xilin Chen• 2024

Related benchmarks

TaskDatasetResultRank
Sketch-conditioned fine-grained image generationCUB-200 (test)
FID26.98
14
Depth-conditioned fine-grained image generationCUB-200 (test)
FID27.29
14
Scribble-to-image generationCOCO (val)
FID26.32
10
Canny-to-Image GenerationCOCO (val)
FID22.89
7
Canny-conditioned Image GenerationCOCO
CLIP Score26.86
7
Segmentation-to-Image GenerationCOCO (val)
FID26.03
7
Depth-to-Image GenerationCOCO (val)
FID25.95
7
Depth-conditioned Image GenerationCOCO
CLIP Score26
7
Segmentation-conditioned Image GenerationCOCO
CLIP Score25.32
7
Sketch-conditioned image generationCOCO
CLIP Score25.16
7
Showing 10 of 10 rows

Other info

Follow for update