# T2I-Adapter

**T2I-Adapter**是一种轻量级适配器网络，通过将模型内部知识与草图、深度图、姿态、色彩布局等外部控制信号对齐，为冻结的预训练文本到图像扩散模型添加空间控制能力。该工作由腾讯ARC实验室与[北京大学](https://www.edgepedia.org/zh/peking-university)VILLA组的牟冲等八位作者于2023年2月在arXiv报告中提出，后发表于AAAI 2024。<sup>[1](https://arxiv.org/abs/2302.08453)</sup><sup> • </sup><sup>[2](https://www.researchgate.net/publication/400855676_Efficient_Text-Guided_Convolutional_Adapter_for_the_Diffusion_Model)</sup>设计目标已写在论文标题中：把文本到图像模型已经隐性“学到的”能力“挖”出来，用于更精细的控制，而不是教模型新的生成能力。<sup>[1](https://arxiv.org/abs/2302.08453)</sup>

| 关键事实 | 详情 |
|---|---|
| 规模 | 约7700万参数、约300 MB存储，对比表中Stable Diffusion 1.5为8.6亿、ControlNet为4.3亿<sup>[3](https://github.com/TencentARC/T2I-Adapter/blob/main/README.md?plain=1)</sup><sup> • </sup><sup>[4](https://research.google/blog/on-device-diffusion-plugins-for-conditioned-text-to-image-generation/)</sup> |
| 基础模型 | 预训练的文本到图像模型（Stable Diffusion）保持冻结，只训练适配器<sup>[1](https://arxiv.org/abs/2302.08453)</sup> |
| 推理开销 | 适配器在扩散过程开始时只运行一次，因此基本不增加每步开销，而ControlNet在每个去噪步骤都要计算<sup>[5](https://github.com/sprintml/SafeTextGen/blob/main/NSFW_intervention/diffusers/docs/source/en/using-diffusers/t2i_adapter.md)</sup> |
| 条件 | 草图、Canny边缘、深度图、语义分割、关键点姿态、OpenPose、空间色板、风格<sup>[3](https://github.com/TencentARC/T2I-Adapter/blob/main/README.md?plain=1)</sup> |
| 可组合性 | 多个适配器通过加权求和组合，无需重新训练；权重手动调整<sup>[6](https://arxiv.org/html/2302.08453)</sup> |
| 报告质量 | 在COCO验证集上，文本加分割的FID为16.78，文本加草图为17.36，而纯文本Stable Diffusion为24.68<sup>[6](https://arxiv.org/html/2302.08453)</sup> |
| SDXL版本 | 2023年8月和9月发布，草图、Canny、线稿、OpenPose及两种深度变体为7700万/7900万参数<sup>[3](https://github.com/TencentARC/T2I-Adapter/blob/main/README.md?plain=1)</sup> |

## 动机与设计

仅靠文本提示无法可靠地指定结构和颜色。作者认为，大型文本到图像模型已经编码了着色和结构化能力，一个小型外部网络可以学习条件输入与该内部知识之间的对齐，而基础模型的参数、架构和去噪目标保持不变。<sup>[6](https://arxiv.org/html/2302.08453)</sup>该工作与[ControlNet](https://www.edgepedia.org/zh/controlnet)同月出现，后者通过复制并微调冻结U-Net的编码器块来实现同一目标；T2I-Adapter则使用一个紧凑的外部网络，将其特征加进冻结模型。<sup>[7](https://arxiv.org/abs/2302.05543)</sup><sup> • </sup><sup>[8](https://saharr1372.github.io/genai-atlas/papers/t2i-adapter-2023/)</sup>

## 架构

适配器是一个小型卷积网络，包含四个特征提取块，每块为一次卷积后接两个残差块，以及三个下采样阶段。512×512的控制图像经像素去洗牌降至64×64，网络产生四张多尺度条件特征图，其维度与冻结U-Net编码器的四个尺度（64×64、32×32、16×16和8×8）相匹配。这些特征被加到每个尺度的编码器特征上：<sup>[6](https://arxiv.org/html/2302.08453)</sup>

\[ \mathbf{F}_{c} = \mathcal{F}_{AD}(\mathbf{C}), \qquad \hat{\mathbf{F}}_{enc}^{i} = \mathbf{F}_{enc}^{i} + \mathbf{F}_{c}^{i}, \quad i \in \{1,2,3,4\} \]

其中\( \mathbf{C} \)为条件输入，\( \mathcal{F}_{AD} \)为适配器。消融实验发现，仅注入编码器时FID最佳（17.36），仅注入解码器为18.32，两者都注入为18.08；注入尺度越少质量越差，单尺度时FID为22.66。<sup>[6](https://arxiv.org/html/2302.08453)</sup>由于条件图稀疏，更小的适配器也可用：1800万参数（小型）和500万参数（微型）的压缩版本仍保留可用的控制能力，小型版本用于粗粒度空间色板。<sup>[6](https://arxiv.org/html/2302.08453)</sup>

## 条件与可组合性

**结构控制。**任务专用适配器直接接受草图、深度图、语义分割图和关键点姿态输入。空间色板则不同：条件图像经双三次插值下采样64倍以剥离结构、保留色调和色彩分布，再用最近邻上采样恢复原尺寸，得到一张空间排列色块的图。<sup>[6](https://arxiv.org/html/2302.08453)</sup>

**组合。**多个已训练适配器可通过加权求和组合，无需额外训练：<sup>[6](https://arxiv.org/html/2302.08453)</sup>

\[ \mathbf{F}_{c} = \sum_{k=1}^{K} \omega_{k}\, \mathcal{F}_{AD}^{k}(\mathbf{C}_{k}) \]

因此草图可提供结构，色板可提供着色。2023年3月，团队发布了**CoAdapter**（可组合适配器），用一个额外的融合器联合训练各T2I-Adapter，使不同条件能够相互感知，从而改善可组合性，尤其是风格模态。<sup>[9](https://github.com/RascalGdd/T2I-Inpainting/blob/main/docs/coadapter.md)</sup>

**泛化。**适配器在[Stable Diffusion](https://www.edgepedia.org/zh/stable-diffusion) v1.4上训练后，可直接用于SD v1.5以及从同一基础模型微调的自定义模型（如Anything-V4.0），无需重新训练。<sup>[6](https://arxiv.org/html/2302.08453)</sup>

## 与ControlNet的效率对比

主要的实际区别在于推理开销。约1 GB的ControlNet模型在每个去噪步骤都要对正向和负向提示路径各计算一次，而约300 MB的T2I-Adapter只运行一次，其后的每个时间步只需将特征加到U-Net的内部特征向量上。<sup>[5](https://github.com/sprintml/SafeTextGen/blob/main/NSFW_intervention/diffusers/docs/source/en/using-diffusers/t2i_adapter.md)</sup>Google Research一项关于条件方法的比较列出了参数量：Plug-and-Play为8.6亿，ControlNet为4.3亿，T2I Adapter为7700万，Google自家的MediaPipe插件为600万；并指出T2I Adapter可插拔且从头训练，但在其设计中无法移植到移动设备。<sup>[4](https://research.google/blog/on-device-diffusion-plugins-for-conditioned-text-to-image-generation/)</sup>综述文章将T2I-Adapter列为适合移动端或边缘部署的高效选项之一，因其计算需求低，同时指出ControlNet和T2I-Adapter都强调结构或语义遵循。<sup>[10](https://www.researchgate.net/publication/398743996_Conditional_Latent_Diffusion_for_Precision-Controllable_Image_Generation)</sup><sup> • </sup><sup>[11](https://www.mdpi.com/2227-7390/14/15/2737)</sup>

在直接对比的基准测试中，权衡在于控制保真度。NeurIPS 2023一项对可控扩散模型的评估发现，T2I-Adapter在8项可控性指标中1项最佳，ControlNet为3项，两者均对每种条件使用一个模型。<sup>[12](https://i.cs.hku.hk/~kykwong/publications/szhao_neurips2023.pdf)</sup>后续研究也发现了适用范围的局限：一项2026年的面部编辑研究报告称，T2I-Adapter在许多情况下无法生成合理的人脸，且不兼容细粒度、解耦的面部属性编辑。<sup>[13](https://doi.org/10.1016/j.patcog.2026.114322)</sup>

## 版本与生态

最初版本于2023年2月15日发布，2月23日加入深度适配器，3月3日加入风格、颜色、OpenPose和Canny适配器。<sup>[3](https://github.com/TencentARC/T2I-Adapter/blob/main/README.md?plain=1)</sup>2023年7月13日，[Stability AI](https://www.edgepedia.org/zh/stability-ai)发布了Stable Doodle，一个基于T2I-Adapter和SDXL的草图到图像工具。<sup>[3](https://github.com/TencentARC/T2I-Adapter/blob/main/README.md?plain=1)</sup>SDXL适配器随后于2023年8月和9月发布，与[Hugging Face](https://www.edgepedia.org/zh/hugging-face) diffusers团队合作，提供`StableDiffusionXLAdapterPipeline`和专用训练脚本；diffusers文档称该适配器类似ControlNet但小得多，因为它只向U-Net插入权重，而不是复制并训练整个U-Net。<sup>[3](https://github.com/TencentARC/T2I-Adapter/blob/main/README.md?plain=1)</sup><sup> • </sup><sup>[14](https://huggingface.co/docs/diffusers/main/training/t2i_adapters)</sup>模型以Apache-2.0许可证托管在Hugging Face的TencentARC组织下，GitHub仓库已获得约3.8k星标。<sup>[15](https://huggingface.co/TencentARC/T2I-Adapter)</sup><sup> • </sup><sup>[16](https://github.com/TencentARC/T2I-Adapter)</sup>

## 局限

作者直接指出一个局限：在多适配器控制中，组合引导特征需要手动调整权重，并提出多模态引导的自适应融合作为未来工作。<sup>[6](https://arxiv.org/html/2302.08453)</sup>后续分析补充说，T2I-Adapter和ControlNet都需要为每种条件配备独立适配器，因此微调成本和模型大小随条件数量线性增长，且基于适配器的方法在无关条件之间的可组合性仍然困难。<sup>[12](https://i.cs.hku.hk/~kykwong/publications/szhao_neurips2023.pdf)</sup>

## References

1. [Chong Mou et al. (2023). T2I-Adapter: Learning Adapters to Dig out More Controllable Ability for Text-to-Image Diffusion Models. arXiv:2302.08453.](https://arxiv.org/abs/2302.08453)
2. [(pdf) efficient text-guided convolutional adapter for the diffusion model](https://www.researchgate.net/publication/400855676_Efficient_Text-Guided_Convolutional_Adapter_for_the_Diffusion_Model)
3. [TencentARC/T2I-Adapter README, GitHub.](https://github.com/TencentARC/T2I-Adapter/blob/main/README.md?plain=1)
4. [Yang Zhao and Tingbo Hou (2023). On-device diffusion plugins for conditioned text-to-image generation. Google Research blog.](https://research.google/blog/on-device-diffusion-plugins-for-conditioned-text-to-image-generation/)
5. [T2I-Adapter documentation, diffusers (SafeTextGen mirror).](https://github.com/sprintml/SafeTextGen/blob/main/NSFW_intervention/diffusers/docs/source/en/using-diffusers/t2i_adapter.md)
6. [T2I-Adapter full text (HTML), arXiv.](https://arxiv.org/html/2302.08453)
7. [Lvmin Zhang, Anyi Rao, Maneesh Agrawala (2023). Adding Conditional Control to Text-to-Image Diffusion Models. arXiv:2302.05543.](https://arxiv.org/abs/2302.05543)
8. [T2I-Adapter entry, Generative Vision Atlas.](https://saharr1372.github.io/genai-atlas/papers/t2i-adapter-2023/)
9. [CoAdapter documentation, TencentARC/T2I-Adapter (fork mirror).](https://github.com/RascalGdd/T2I-Inpainting/blob/main/docs/coadapter.md)
10. [Conditional Latent Diffusion for Precision-Controllable Image Generation, ResearchGate.](https://www.researchgate.net/publication/398743996_Conditional_Latent_Diffusion_for_Precision-Controllable_Image_Generation)
11. [Collaborative Control in Diffusion Models for Precise Image Generation: A Survey, MDPI Mathematics.](https://www.mdpi.com/2227-7390/14/15/2737)
12. [Uni-ControlNet: All-in-One Control to Text-to-Image Diffusion Models, NeurIPS 2023.](https://i.cs.hku.hk/~kykwong/publications/szhao_neurips2023.pdf)
13. [Towards consistent and controllable image synthesis for identity-preserving face editing, Pattern Recognition.](https://doi.org/10.1016/j.patcog.2026.114322)
14. [T2I-Adapter training guide, Hugging Face diffusers documentation.](https://huggingface.co/docs/diffusers/main/training/t2i_adapters)
15. [TencentARC/T2I-Adapter model card, Hugging Face.](https://huggingface.co/TencentARC/T2I-Adapter)
16. [TencentARC/T2I-Adapter repository, GitHub.](https://github.com/TencentARC/T2I-Adapter)

---
*Initially written Oct 15, 2026 · Edited: Oct 25, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › 模型家族与已命名的模型

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/t2i-adapter

English original: https://www.edgepedia.org/t2i-adapter
