All models

T2IAdapter

ResNet-like side network turning a control image into feature maps for a diffusion U-Net; MultiAdapter builds included.

Diffusion and generative · 39 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (60 KB)

Open in a new tab

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.

At a glance

Parameters
77.4M
Operations
39
Framework
PyTorch
Recurrent
No
Source
diffusers 0.40.0
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m2973
Graph hash
72272366d65b9dd54440b5c161426b585deee6926de45915eb68baa33a9ec0b3
Skeleton hash
6b21981ecf8098e780049e22147c1891cd7421df97833a2d0694b3c4002d46bf
Architecture hash
13f4ca5560f04da8935063cf4f430741ad5f3e35fedbbc579fed019f68f73471
Diagram SHA-256
6a2b70bbbf7bb66638e3a71f8ba0199dc9912a157b98f157cfccda21e55366b0
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

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.

  • T2I-Adapter
  • t2i adapter
  • TencentARC
  • control image
  • keypose
  • depth conditioning
  • MultiAdapter
  • MotionAdapter
  • diffusers adapter
  • UNet2DConditionModel conditioning

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.