
T2IAdapter
Diffusion and generative39 ops77.4M params
ResNet-like side network turning a control image into feature maps for a diffusion U-Net; MultiAdapter builds included.
Diffusion and generative · 10 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
menagerie.classics.resid_slice_e:build_motion_adapter: build({}) About this model's family
T2I-Adapter is a simple ResNet-like network that reads an image carrying a control signal, such as keyposes or depth, rather than a photograph to be generated. It produces multiple feature maps that are used as additional conditioning in UNet2DConditionModel, the diffusion U-Net of the diffusers library. The diffusers implementation follows the original Adapter and AdapterLight code from the TencentARC T2I-Adapter repository.
By default the adapter takes a 3-channel control image, and a grayscale control image is handled by setting the input channels to 1. Its downsample blocks output 320, 640, 1280 and 1280 channels, and the length of that list sets the number of downsample blocks. Each downsample block holds 2 ResNet blocks by default. The total downscale factor defaults to 8, and the adapter_type argument selects full_adapter, full_adapter_xl or light_adapter.
Key idea. A light ResNet-like side network that turns a control image into multi-scale feature maps used as extra conditioning for a diffusion U-Net.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.