All models

MotionAdapter

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

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 (14 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
13K
Operations
10
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
m1805
Graph hash
136f879afb0508e48cb133320fca3652f33a33fc2ecd61c6bf4b03263c527b39
Skeleton hash
6b4a9c84e4971d8079a4300f1b14c631fb23376bd3bbd3bce4b39cb003b7027a
Architecture hash
8963ed9a894d32eb98d3691f9f49a98726b361618474cb4aec70a8baf2b9016a
Diagram SHA-256
e2b53b563f2394b675cb11b83924ec0c87e0af5c576aff143e9906c80b5a1b12
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

How this diagram was made

menagerie.classics.resid_slice_e:build_motion_adapter: build({})

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.