CtrLoRA:一个用于可控图像生成的可扩展且高效的框架
CtrLoRA: An Extensible and Efficient Framework for Controllable Image Generation
AI总结:
提出CtrLoRA框架,通过预训练Base ControlNet学习通用知识与条件特定LoRA,以极低数据和算力成本高效适配新条件,实现可控图像生成。
摘要:
最近,大规模扩散模型在文本到图像(T2I)生成方面取得了令人瞩目的进展。为了进一步赋予这些 T2I 模型细粒度的空间控制能力,像 ControlNet 这样的方法引入了一个额外的网络来学习遵循条件图像。然而,对于每一种单一的条件类型,ControlNet 需要在数百万数据对上进行独立训练,耗费数百个 GPU 小时,这非常昂贵,并使得普通用户难以探索和开发新类型的条件。为了解决这个问题,我们提出了 CtrLoRA 框架,该框架训练一个 Base ControlNet 来从多个基础条件中学习图像到图像生成的通用知识,并结合特定条件的 LoRA 来捕捉每种条件的独特特征。利用我们预训练的 Base ControlNet,用户可以轻松地将其适应于新条件,在大多数场景下仅需 1,000 个数据对和不到一小时的单 GPU 训练即可获得令人满意的结果。此外,与 ControlNet 相比,我们的 CtrLoRA 将可学习参数减少了 90%,显著降低了分发和部署模型权重的门槛。在多种类型条件上的广泛实验证明了我们方法的高效性和有效性。代码和模型权重将发布于 https://github.com/xyfJASON/ctrlora。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。