Trajectory Attention for Fine-grained Video Motion Control

Zeqi Xiao, Wenqi Ouyang, Yifan Zhou, Shuai Yang, Lei Yang +2 more
11/28/2024
cs.CV

No official code found. Best implementation: xizaoqu/TrajectoryAttention (102 stars, last commit 2025-05-13).

Abstract

Recent advancements in video generation have been greatly driven by video diffusion models, with camera motion control emerging as a crucial challenge in creating view-customized visual content. This paper introduces trajectory attention, a novel approach that performs attention along available pixel trajectories for fine-grained camera motion control. Unlike existing methods that often yield imprecise outputs or neglect temporal correlations, our approach possesses a stronger inductive bias that seamlessly injects trajectory information into the video generation process. Importantly, our approach models trajectory attention as an auxiliary branch alongside traditional temporal attention. This design enables the original temporal attention and the trajectory attention to work in synergy, ensuring both precise motion control and new content generation capability, which is critical when the trajectory is only partially available. Experiments on camera motion control for images and videos demonstrate significant improvements in precision and long-range consistency while maintaining high-quality generation. Furthermore, we show that our approach can be extended to other video motion control tasks, such as first-frame-guided video editing, where it excels in maintaining content consistency over large spatial and temporal ranges.

View on arXivView PDF

Code Implementations(1)

[ICLR 2025] Trajectory Attention For Fine-grained Video Motion Control

1025Shell, PythonNov 27, 20241 years ago

Similar Papers

Cite this paper

@article{xiao2024trajectory,
  title  = {Trajectory Attention for Fine-grained Video Motion Control},
  author = {Zeqi Xiao and Wenqi Ouyang and Yifan Zhou and Shuai Yang and Lei Yang and Jianlou Si and Xingang Pan},
  year   = {2024},
  eprint = {2411.19324},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.19324v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.19324.svg)](https://codeofpaper.com/paper/2411.19324)

Discussion