--- license: other language: - en base_model: - THUDM/CogVideoX-5b tags: - video - video-generation - cogvideox - alibaba pipeline_tag: text-to-video ---
## Please visit our [Github repo](https://github.com/alibaba/Tora) for more details. ## 💡 Abstract 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. ## 📣 Updates - `2025/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](diffusers-version/README.md) for details. - `2024/11/25` 🔥Text-to-Video training code released. - `2024/10/31` Model weights uploaded to [HuggingFace](https://huggingface.co./Le0jc/Tora). We also provided an English demo on [ModelScope](https://www.modelscope.cn/studios/Alibaba_Research_Intelligence_Computing/Tora_En). - `2024/10/23` 🔥🔥Our [ModelScope Demo](https://www.modelscope.cn/studios/xiaoche/Tora) is launched. Welcome to try it out! We also upload the model weights to [ModelScope](https://www.modelscope.cn/models/xiaoche/Tora). - `2024/10/21` Thanks to [@kijai](https://github.com/kijai) for supporting Tora in ComfyUI! [Link](https://github.com/kijai/ComfyUI-CogVideoXWrapper) - `2024/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. ## 🎞️ Showcases 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](https://cloudbook-public-daily.oss-cn-hangzhou.aliyuncs.com/Tora_t2v/showcases.zip) ## 🤝 Acknowledgements We would like to express our gratitude to the following open-source projects that have been instrumental in the development of our project: - [CogVideo](https://github.com/THUDM/CogVideo): An open source video generation framework by THUKEG. - [Open-Sora](https://github.com/hpcaitech/Open-Sora): An open source video generation framework by HPC-AI Tech. - [MotionCtrl](https://github.com/TencentARC/MotionCtrl): A video generation model supporting motion control by ARC Lab, Tencent PCG. - [ComfyUI-DragNUWA](https://github.com/chaojie/ComfyUI-DragNUWA): An implementation of DragNUWA for ComfyUI. Special thanks to the contributors of these libraries for their hard work and dedication! ## 📄 Our previous work - [AnimateAnything: Fine Grained Open Domain Image Animation with Motion Guidance](https://github.com/alibaba/animate-anything) ## 📚 Citation ```bibtex @misc{zhang2024toratrajectoryorienteddiffusiontransformer, title={Tora: Trajectory-oriented Diffusion Transformer for Video Generation}, author={Zhenghao Zhang and Junchao Liao and Menghao Li and Zuozhuo Dai and Bingxue Qiu and Siyu Zhu and Long Qin and Weizhi Wang}, year={2024}, eprint={2407.21705}, archivePrefix={arXiv}, primaryClass={cs.CV}, url={https://arxiv.org/abs/2407.21705}, } ```