We present a new method for text-driven motion transfer - synthesizing a video that complies with an input text prompt describing the target objects and scene while maintaining an input video's motion and scene layout. Prior methods are confined to transferring motion across two subjects within the same or closely related object categories and are applicable for limited domains (e.g., humans). In this work, we consider a significantly more challenging setting in which the target and source objects differ drastically in shape and fine-grained motion characteristics (e.g., translating a jumping dog into a dolphin). To this end, we leverage a pre-trained and fixed text-to-video diffusion model, which provides us with generative and motion priors. The pillar of our method is a new space-time feature loss derived directly from the model. This loss guides the generation process to preserve the overall motion of the input video while complying with the target object in terms of shape and fine-grained motion traits.
We focus our analysis on features extracted from the intermediate layers
activations of the video model. To gain a better understanding of what the features
$\{\boldsymbol{f}(\boldsymbol{x}_t)\}_{t=1}^T$ extracted for each diffusion timestep $t$ encode,
we adopt the concept of “feature inversion”. We observe that videos produced by feature inversion nearly
reconstruct the original frames, regardless of the random inilialization (i.e different seeds).
This suggests that the features encode the original objects' pose, shape, and appearance.
To reduce dependency on pixel-level information and enhance robustness to
variations in appearance and shape, we introduce a new feature descriptor termed
Spatial Marginal Mean (SMM):
This descriptor is obtained by averaging the space-time features along the spatial dimensions.
Despite collapsing the spatial dimensions, the SMM features retain information about objects' pose and semantic layout,
showcasing robustness to appearance and shape variations.
The following videos demonstrate sample results for feature inversion using the original features and the SMM features. Each row represents a different random starting point.
Original | Space-time feature loss | SMM feature loss | |
---|---|---|---|
Seed 1 | |||
Seed 2 |
@article{yatim2023spacetime,
title = {Space-Time Diffusion Features for Zero-Shot Text-Driven Motion Transfer},
author = {Yatim, Danah and Fridman, Rafail and Bar-Tal, Omer and Kasten, Yoni and Dekel, Tali},
journal={arXiv preprint arxiv:2311.17009},
year={2023}
}