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 future video frames from a single image is a highly ambiguous task because an object can move in an infinite number of ways. Existing methods typically handle this by either making deterministic predictions, sampling random noise, or requiring dense, labor-intensive annotations like skeletal poses or optical flow maps.
This paper addresses the challenge of controllable video generation using sparse inputs. The proposed method allows a user to animate an object in a single image by providing a "motion stroke"—a rough 2D sketch of the path the object should follow. This requires the network to infer complex, non-rigid motions, such as the articulation of human legs during walking, using only the speed and direction implied by a simple drawn line.
Methodology
The core of the proposed architecture is a Recurrent Neural Network (RNN) augmented by an autoencoder, designed to predict the latent encoding of the next frame rather than generating pixels directly.
At each time step, the network's predictor receives four key inputs: the encoding of the initial frame (to anchor appearance), the encoding of the current frame, the complete motion stroke sequence (for future context), and the current motion step (for immediate velocity and direction).
A significant novelty of this architecture is how it handles temporal state. Traditional RNNs accumulate history in hidden states, requiring Back-Propagation Through Time (BPTT), which is often unstable. By explicitly feeding the initial frame and the full motion path into the network at every step, the model avoids the need to memorize the past. This allows the RNN to be trained effectively using a single feedforward step of truncated back-propagation. The model is trained end-to-end with a combination of $L_2$ reconstruction loss, VGG perceptual loss, and two Generative Adversarial Network (GAN) discriminators to ensure frame realism and temporal smoothness.
Experiments and Results
The model was evaluated on a variety of datasets, including Moving MNIST, Robot Push, KTH Action, Weizmann, and Human3.6M, covering both rigid and complex non-rigid motions.
Performance Metrics
- Robot Push: The method outperforms competing trajectory-based generation methods in both PSNR and SSIM, producing sharper frames.
- KTH Action: The model achieves a Learned Perceptual Image Patch Similarity (LPIPS) score of 0.09, surpassing recent single-image baselines.
- Structural Coherence: An off-the-shelf pose detector achieved an 87.1% detection rate on the generated KTH videos, significantly higher than the ~54% achieved by competitors. This indicates that the generated frames maintain high anatomical realism and smooth motion.
Key Insights
- Anchoring Appearance: Explicitly passing the initial frame's encoding at every time step prevents the common RNN pitfall where generated frames degrade or darken over time. The authors demonstrated that standard "teacher forcing" without this explicit anchoring fails completely.
- Velocity from Sparsity: The network learns to interpret the distance between stroke points as velocity. Denser points result in walking, while sparser points result in running. The model can even generate smooth transitions between these states if the stroke speed changes mid-sequence.
- Temporal Flexibility: Because the architecture predicts frame-by-frame recurrently, it can generate videos longer than its training sequences (e.g., 24 frames from a model trained on 16) while maintaining image quality.
Conclusion
This work demonstrates that realistic, controllable video can be synthesized from a single image and a sparse motion stroke. While the current model assumes a static background and is sensitive to out-of-distribution trajectories, it provides a robust framework for intuitive animation. Future research will focus on generalizing to more diverse trajectories and incorporating dynamic backgrounds.
Summary updated