Views
No views yet
TACA with Stable Diffusion 3.5 or FLUX.1 models.1from diffusers import StableDiffusionXLPipeline
2import torch
3
4# Load the base model and LoRA weights
5pipe = StableDiffusionXLPipeline.from_pretrained(
6 "stabilityai/stable-diffusion-3.5-medium", torch_dtype=torch.float16
7)
8pipe.load_lora_weights("ldiex/TACA", weight_name="taca_sd3_r64.safetensors")
9pipe.to("cuda")
10
11# Generate an image
12prompt = "A majestic lion standing proudly on a rocky cliff overlooking a vast savanna at sunset."
13image = pipe(prompt).images[0]
14
15image.save("lion_sunset.png")1from diffusers import FluxPipeline
2import torch
3
4# Load the base model and LoRA weights
5pipe = FluxPipeline.from_pretrained(
6 "black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16
7)
8pipe.load_lora_weights("ldiex/TACA", weight_name="taca_flux_r64.safetensors")
9pipe.to("cuda")
10
11# Generate an image
12prompt = "A majestic lion standing proudly on a rocky cliff overlooking a vast savanna at sunset."
13image = pipe(prompt).images[0]
14
15image.save("lion_sunset.png")| Model | Attribute Binding | Object Relationship | Complex $\uparrow$ | |||
|---|---|---|---|---|---|---|
| Color $\uparrow$ | Shape $\uparrow$ | Texture $\uparrow$ | Spatial $\uparrow$ | Non-Spatial $\uparrow$ | ||
| FLUX.1-Dev | 0.7678 | 0.5064 | 0.6756 | 0.2066 | 0.3035 | 0.4359 |
| FLUX.1-Dev + TACA ($r = 64$) | 0.7843 | 0.5362 | 0.6872 | 0.2405 | 0.3041 | 0.4494 |
| FLUX.1-Dev + TACA ($r = 16$) | 0.7842 | 0.5347 | 0.6814 | 0.2321 | 0.3046 | 0.4479 |
| SD3.5-Medium | 0.7890 | 0.5770 | 0.7328 | 0.2087 | 0.3104 | 0.4441 |
| SD3.5-Medium + TACA ($r = 64$) | 0.8074 | 0.5938 | 0.7522 | 0.2678 | 0.3106 | 0.4470 |
| SD3.5-Medium + TACA ($r = 16$) | 0.7984 | 0.5834 | 0.7467 | 0.2374 | 0.3111 | 0.4505 |




1@article{lv2025taca,
2 title={TACA: Rethinking Cross-Modal Interaction in Multimodal Diffusion Transformers},
3 author={Lv, Zhengyao and Pan, Tianlin and Si, Chenyang and Chen, Zhaoxi and Zuo, Wangmeng and Liu, Ziwei and Wong, Kwan-Yee K},
4 journal={arXiv preprint arXiv:2506.07986},
5 year={2025}
6}