T2I-Adapter / docs /examples.md
Adapter's picture
support composable adapter (#5)
b3478e4

A newer version of the Gradio SDK is available: 5.6.0

Upgrade

Demos

Style Adapter

Color Adapter (Spatial Palette)

Openpose Adapter

Canny Adapter (Edge)

Multi-adapters

T2I adapters naturally support using multiple adapters together.


The testing script usage for this example is similar to the command line given below, except that we replaced the pretrained SD model with Anything 4.5 and Kenshi

python test_composable_adapters.py --prompt "1gril, computer desk, best quality, extremely detailed" --neg_prompt "longbody, lowres, bad anatomy, bad hands, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality" --depth_cond_path examples/depth/desk_depth.png --depth_cond_weight 1.0 --depth_ckpt models/t2iadapter_depth_sd14v1.pth --depth_type_in depth --pose_cond_path examples/keypose/person_keypose.png --pose_cond_weight 1.5 --ckpt models/anything-v4.0-pruned.ckpt --n_sample 4 --max_resolution 524288

Image source