Abstract
We present a method to generate a video sequence given a single image. Because items in an image can be animated in arbitrarily many different ways, we introduce as control signal a sequence of motion strokes. Such control signal can be automatically transferred from other videos, e.g., via bounding box tracking. Each motion stroke provides the direction to the moving object in the input image and we aim to train a network to generate an animation following a sequence of such directions. To address this task we design a novel recurrent architecture, which can be trained easily and effectively thanks to an explicit separation of past, future and current states. As we demonstrate in the experiments, our proposed architecture is capable of generating an arbitrary number of frames from a single image and a sequence of motion strokes. Key components of our architecture are an autoencoding constraint to ensure consistency with the past and a generative adversarial scheme to ensure that images look realistic and are temporally smooth. We demonstrate the effectiveness of our approach on the MNIST, KTH, Human3.6M, Push and Weizmann datasets.
Introduction
Predicting a video from a single still image is a highly ambiguous problem—an object in a photo could move in any number of directions, at any speed. Previous approaches have tried to constrain this by using random noise vectors, which offer no intuitive control, or by requiring dense annotations like 3D skeletal poses or optical flow maps, which are difficult to obtain and hard to transfer between different videos.
This paper introduces a novel method to generate a controllable video from a single image using a sequence of 2D "motion strokes" as a guide. By designing a unique recurrent neural network (RNN) that explicitly separates past, current, and future states, the authors allow a user or an automated tracking algorithm to provide a simple 2D trajectory to realistically animate an object along a specific path.
Methods
The core of the proposed method is a novel Recurrent Neural Network (RNN) augmented with an autoencoder and Generative Adversarial Network (GAN) components.
Explicit State Formulation
At any given time step $t$, the RNN predictor receives three primary inputs: the encoding of the initial frame ($I_0$), the encoding of the previous generated frame ($\hat{I}_t$), and a motion encoding. The motion encoding combines the entire stroke sequence (providing future context) and the current stroke step (providing immediate direction and velocity). This "anchoring" to the initial frame prevents the common issue of frame degradation and blurring over time in autoregressive models.
Single-Step Training
Traditionally, RNNs require Back-Propagation Through Time (BPTT), which is computationally expensive and difficult to stabilize. Because this architecture explicitly feeds all necessary context into the predictor at every step, the network doesn't need to accumulate sequence history in its hidden state. This allows the authors to train the RNN as a simple feed-forward network using single-step truncated back-propagation.
Loss Functions
The generator is trained using a combination of losses to ensure both visual fidelity and temporal consistency:
- L2 Reconstruction Loss: Ensures pixel-wise accuracy against ground truth.
- Autoencoding Constraint: Maintains consistency with the past states.
- Perceptual Loss (VGG): Improves high-level visual quality.
- Dual GAN Discriminators: One ensures individual frames look realistic ($D_1$), while another ensures temporal smoothness between consecutive frames ($D_2$).
Key Insights and Results
The authors evaluated their model on diverse datasets including Moving MNIST, Robot Push, and human motion datasets (KTH, Weizmann, Human3.6M).
Semantic Motion Control
A key finding is that the network learns to associate stroke density with motion semantics. Dense stroke points (short distances) trigger "walking" animations, while sparse points (long distances) trigger "running." The model can even smoothly transition between these states mid-sequence if the stroke density changes.
Quantitative Performance
On the KTH dataset, the method achieved a Learned Perceptual Image Patch Similarity (LPIPS) score of 0.09, significantly outperforming competing single-image video baselines. Furthermore, to prove structural realism, the authors ran a pose detector on the generated videos; their method achieved an 87.1% valid person detection rate, nearly doubling the performance of baselines (which hovered around 54%).
Conclusion
While the model excels at animating objects along trajectories, its quality can degrade when faced with out-of-distribution trajectories not seen during training. Additionally, the current framework assumes a static background. Future work will focus on expanding the system to handle dynamic backgrounds and camera panning, further enhancing the realism of generated scenes.
Summary updated