Zhenghao Zhang*, Junchao Liao*, Menghao Li, Zuozhuo Dai, Bingxue Qiu, Siyu Zhu, Long Qin, Weizhi Wang
* equal contribution
Recent advancements in Diffusion Transformer (DiT) have demonstrated remarkable proficiency in producing high-quality video content. Nonetheless, the potential of transformer-based diffusion models for effectively generating videos with controllable motion remains an area of limited exploration. This paper introduces Tora, the first trajectory-oriented DiT framework that integrates textual, visual, and trajectory conditions concurrently for video generation. Specifically, Tora consists of a Trajectory Extractor (TE), a Spatial-Temporal DiT, and a Motion-guidance Fuser (MGF). The TE encodes arbitrary trajectories into hierarchical spacetime motion patches with a 3D video compression network. The MGF integrates the motion patches into the DiT blocks to generate consistent videos following trajectories. Our design aligns seamlessly with DiTβs scalability, allowing precise control of video contentβs dynamics with diverse durations, aspect ratios, and resolutions. Extensive experiments demonstrate Toraβs excellence in achieving high motion fidelity, while also meticulously simulating the movement of physical world.
2025/07/08 π₯π₯ Our latest work, Tora2, has been accepted by ACM MM25. Tora2 builds on Tora with design improvements, enabling enhanced appearance and motion customization for multiple entities.2025/05/24 We open-sourced a LoRA-finetuned model of Wan. It turns things in the image into fluffy toys. Check this out: https://github.com/alibaba/wan-toy-transform2025/01/06 π₯π₯We released Tora Image-to-Video, including inference code and model weights.2024/12/13 SageAttention2 and model compilation are supported in diffusers version. Tested on the A10, these approaches speed up every inference step by approximately 52%, except for the first step.2024/12/09 π₯π₯Diffusers version of Tora and the corresponding model weights are released. Inference VRAM requirements are reduced to around 5 GiB. Please refer to this for details.2024/11/25 π₯Text-to-Video training code released.2024/10/31 Model weights uploaded to HuggingFace. We also provided an English demo on ModelScope.2024/10/23 π₯π₯Our ModelScope Demo is launched. Welcome to try it out! We also upload the model weights to ModelScope.2024/10/21 Thanks to @kijai for supporting Tora in ComfyUI! Link2024/10/15 π₯π₯We released our inference code and model weights. Please note that this is a CogVideoX version of Tora, built on the CogVideoX-5B model. This version of Tora is meant for academic research purposes only. Due to our commercial plans, we will not be open-sourcing the complete version of Tora at this time.2024/08/27 We released our v2 paper including appendix.2024/07/31 We submitted our paper on arXiv and released our project page.https://github.com/user-attachments/assets/949d5e99-18c9-49d6-b669-9003ccd44bf1
https://github.com/user-attachments/assets/7e7dbe87-a8ba-4710-afd0-9ef528ec329b
https://github.com/user-attachments/assets/4026c23d-229d-45d7-b5be-6f3eb9e4fd50
All videos are available in this Link
Tora
βββ sat
βββ ckpts
βββ t5-v1_1-xxl
β βββ model-00001-of-00002.safetensors
β βββ ...
βββ vae
β βββ 3d-vae.pt
βββ tora
β βββ i2v
β β βββ mp_rank_00_model_states.pt
β βββ t2v
β βββ mp_rank_00_model_states.pt
βββ CogVideoX-5b-sat # for training stage 1
βββ mp_rank_00_model_states.pt
Note: Downloading the tora weights requires following the CogVideoX License. You can choose one of the following options: HuggingFace, ModelScope, or native links.
After downloading the model weights, you can put them in the Tora/sat/ckpts folder.
# This can be faster
pip install "huggingface_hub[hf_transfer]"
HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download Alibaba-Research-Intelligence-Computing/Tora --local-dir ckpts
or
# use git
git lfs install
git clone https://huggingface.co/Alibaba-Research-Intelligence-Computing/Tora
from modelscope import snapshot_download
model_dir = snapshot_download('xiaoche/Tora')
git clone https://www.modelscope.cn/xiaoche/Tora.git
We would like to express our gratitude to the following open-source projects that have been instrumental in the development of our project:
Special thanks to the contributors of these libraries for their hard work and dedication!
@inproceedings{zhang2025tora,
title={Tora: Trajectory-oriented diffusion transformer for video generation},
author={Zhang, Zhenghao and Liao, Junchao and Li, Menghao and Dai, Zuozhuo and Qiu, Bingxue and Zhu, Siyu and Qin, Long and Wang, Weizhi},
booktitle={Proceedings of the Computer Vision and Pattern Recognition Conference},
pages={2063--2073},
year={2025}
}
Zhenghao Zhang*, Junchao Liao*, Menghao Li, Zuozhuo Dai, Bingxue Qiu, Siyu Zhu, Long Qin, Weizhi Wang
* equal contribution
Recent advancements in Diffusion Transformer (DiT) have demonstrated remarkable proficiency in producing high-quality video content. Nonetheless, the potential of transformer-based diffusion models for effectively generating videos with controllable motion remains an area of limited exploration. This paper introduces Tora, the first trajectory-oriented DiT framework that integrates textual, visual, and trajectory conditions concurrently for video generation. Specifically, Tora consists of a Trajectory Extractor (TE), a Spatial-Temporal DiT, and a Motion-guidance Fuser (MGF). The TE encodes arbitrary trajectories into hierarchical spacetime motion patches with a 3D video compression network. The MGF integrates the motion patches into the DiT blocks to generate consistent videos following trajectories. Our design aligns seamlessly with DiTβs scalability, allowing precise control of video contentβs dynamics with diverse durations, aspect ratios, and resolutions. Extensive experiments demonstrate Toraβs excellence in achieving high motion fidelity, while also meticulously simulating the movement of physical world.
2025/07/08 π₯π₯ Our latest work, Tora2, has been accepted by ACM MM25. Tora2 builds on Tora with design improvements, enabling enhanced appearance and motion customization for multiple entities.2025/05/24 We open-sourced a LoRA-finetuned model of Wan. It turns things in the image into fluffy toys. Check this out: https://github.com/alibaba/wan-toy-transform2025/01/06 π₯π₯We released Tora Image-to-Video, including inference code and model weights.2024/12/13 SageAttention2 and model compilation are supported in diffusers version. Tested on the A10, these approaches speed up every inference step by approximately 52%, except for the first step.2024/12/09 π₯π₯Diffusers version of Tora and the corresponding model weights are released. Inference VRAM requirements are reduced to around 5 GiB. Please refer to this for details.2024/11/25 π₯Text-to-Video training code released.2024/10/31 Model weights uploaded to HuggingFace. We also provided an English demo on ModelScope.2024/10/23 π₯π₯Our ModelScope Demo is launched. Welcome to try it out! We also upload the model weights to ModelScope.2024/10/21 Thanks to @kijai for supporting Tora in ComfyUI! Link2024/10/15 π₯π₯We released our inference code and model weights. Please note that this is a CogVideoX version of Tora, built on the CogVideoX-5B model. This version of Tora is meant for academic research purposes only. Due to our commercial plans, we will not be open-sourcing the complete version of Tora at this time.2024/08/27 We released our v2 paper including appendix.2024/07/31 We submitted our paper on arXiv and released our project page.https://github.com/user-attachments/assets/949d5e99-18c9-49d6-b669-9003ccd44bf1
https://github.com/user-attachments/assets/7e7dbe87-a8ba-4710-afd0-9ef528ec329b
https://github.com/user-attachments/assets/4026c23d-229d-45d7-b5be-6f3eb9e4fd50
All videos are available in this Link
Tora
βββ sat
βββ ckpts
βββ t5-v1_1-xxl
β βββ model-00001-of-00002.safetensors
β βββ ...
βββ vae
β βββ 3d-vae.pt
βββ tora
β βββ i2v
β β βββ mp_rank_00_model_states.pt
β βββ t2v
β βββ mp_rank_00_model_states.pt
βββ CogVideoX-5b-sat # for training stage 1
βββ mp_rank_00_model_states.pt
Note: Downloading the tora weights requires following the CogVideoX License. You can choose one of the following options: HuggingFace, ModelScope, or native links.
After downloading the model weights, you can put them in the Tora/sat/ckpts folder.
# This can be faster
pip install "huggingface_hub[hf_transfer]"
HF_HUB_ENABLE_HF_TRANSFER=1 huggingface-cli download Alibaba-Research-Intelligence-Computing/Tora --local-dir ckpts
or
# use git
git lfs install
git clone https://huggingface.co/Alibaba-Research-Intelligence-Computing/Tora
from modelscope import snapshot_download
model_dir = snapshot_download('xiaoche/Tora')
git clone https://www.modelscope.cn/xiaoche/Tora.git
We would like to express our gratitude to the following open-source projects that have been instrumental in the development of our project:
Special thanks to the contributors of these libraries for their hard work and dedication!
@inproceedings{zhang2025tora,
title={Tora: Trajectory-oriented diffusion transformer for video generation},
author={Zhang, Zhenghao and Liao, Junchao and Li, Menghao and Dai, Zuozhuo and Qiu, Bingxue and Zhu, Siyu and Qin, Long and Wang, Weizhi},
booktitle={Proceedings of the Computer Vision and Pattern Recognition Conference},
pages={2063--2073},
year={2025}
}