DreamVideo-2: Zero-Shot Subject-Driven Video Customization with Precise Motion Control

Yujie Wei, Shiwei Zhang, Hangjie Yuan, Xiang Wang, Haonan Qiu, Rui Zhao, Yutong Feng, Feng Liu, Zhizhong Huang, Jiaxin Ye, Yingya Zhang, Hongming Shan · DOI

Introduction

Customizing video generation—enabling a specific character to perform a specific action along a defined path—remains a significant challenge in computer vision. Existing state-of-the-art methods typically suffer from two primary issues: high computational costs due to required test-time fine-tuning and a persistent imbalance between maintaining subject identity and adhering to motion constraints. DreamVideo-2 introduces a zero-shot framework designed to harmonize these competing objectives, allowing for instant video generation from a single reference image and a sequence of bounding boxes.

Methodology

DreamVideo-2 is built upon a pre-trained video diffusion model (VDM), enhanced with several architectural innovations to ensure both identity preservation and motion accuracy.

Reference Attention and Identity Transfer

Rather than relying on external image encoders like CLIP, DreamVideo-2 utilizes the internal feature extraction capabilities of the VDM itself. By feeding the subject image into a frozen VDM, the model extracts rich, high-resolution features that are then integrated into the video generation process via "reference attention."

Mask-Guided Motion Control

To achieve precise trajectory control, the framework utilizes a sequence of bounding boxes converted into binary masks. These masks are processed through a lightweight spatiotemporal encoder and a spatial ControlNet. A key innovation is Masked Reference Attention, which blends these motion masks into the reference attention layers. This mechanism directs the model's "subject-learning" capacity specifically to the pixels within the bounding boxes, preventing the motion signal from overwhelming the subject's unique features.

DreamVideo-2 utilizes a sequence of bounding boxes to guide the subject's motion while preserving its identity.

Reweighted Diffusion Loss

The training process incorporates a reweighted diffusion loss that penalizes errors more heavily within the bounding boxes. This ensures that the diffusion process prioritizes the fine details of the subject over the background, further strengthening identity consistency.

Dataset and Training

The authors curated a new, large-scale single-subject video dataset to address the lack of high-quality annotated data for this task. The dataset comprises 230,160 videos across 2,538 unique object classes. Crucially, each video is annotated with text captions, per-frame subject masks, and bounding box sequences, providing the dense spatial supervision necessary for training precise motion control modules.

Experimental Results

DreamVideo-2 demonstrates superior performance compared to existing baselines like MotionBooth and the original DreamVideo.

  • Motion Precision: The model achieved a Mean Intersection of Union (mIoU) of 0.670, a significant improvement over the original DreamVideo's 0.169, indicating much tighter adherence to requested trajectories.
  • Subject Fidelity: Evaluation using the DINO-I metric showed that DreamVideo-2 better preserves the visual characteristics of the reference subject.
  • Efficiency: As a zero-shot framework, DreamVideo-2 eliminates the need for per-subject fine-tuning, enabling near-instantaneous generation compared to the minutes or hours required by previous methods.
The framework effectively anchors the subject's identity to the desired spatial trajectory.

Discussion and Limitations

While DreamVideo-2 represents a major step forward, certain limitations remain. The model's reliance on a frozen VDM means it may struggle with "out-of-distribution" motions not present in the base model's training data. Additionally, decoupling camera movement from object motion remains a challenge, and the current framework is optimized for single-subject scenarios. Future research will focus on extending these capabilities to multi-subject interactions and more complex motion dynamics.

Summary updated

BibTeX
@misc{wei2024dreamvideo,
  author = {Yujie Wei and Shiwei Zhang and Hangjie Yuan and Xiang Wang and Haonan Qiu and Rui Zhao and Yutong Feng and Feng Liu and Zhizhong Huang and Jiaxin Ye and Yingya Zhang and Hongming Shan},
  title = {{DreamVideo-2: Zero-Shot Subject-Driven Video Customization with Precise Motion Control}},
  year = {2024},
  eprint = {2410.13830},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.13830},
}
Figure