Towards an Understanding of Our World by GANing Videos in the Wild

Bernhard Kratzwald, Zhiwu Huang, Danda Pani Paudel, Luc Van Gool

Abstract

In this paper, we aim to improve the state-of-the-art video generative adversarial networks (GANs) with a view towards multi-functional applications. Our improved video GAN model does not separate foreground from background nor dynamic from static patterns, but learns to generate the entire video clip conjointly. Our model can thus be trained to generate - and learn from - a broad set of videos with no restriction. This is achieved by designing a robust one-stream video generation architecture with an extension of the state-of-the-art Wasserstein GAN framework that allows for better convergence. The experimental results show that our improved video GAN model outperforms state-of-the-art video generative models on multiple challenging datasets. Furthermore, we demonstrate the superiority of our model by successfully extending it to three challenging problems: video colorization, video inpainting, and future prediction. To the best of our knowledge, this is the first work using GANs to colorize and inpaint video clips.

Introduction

Generating realistic video is significantly harder than generating images because a model must capture both spatial structure and temporal consistency. To manage this complexity, previous state-of-the-art models (like VGAN or TGAN) relied on "two-stream" architectures. These models typically generated a static background image and a separate dynamic foreground, then masked them together. While this simplification aids stability, it creates a major bottleneck: these models only work on videos with static backgrounds and non-moving cameras.

In the "wild," videos are rarely that cooperative. The authors introduce iVGAN (improved Video GAN) to remove these training restrictions. By creating a "one-stream" model that learns spatial and temporal dependencies simultaneously, iVGAN can handle moving cameras and dynamic backgrounds, capturing the natural interference between objects and their environments, such as shadows and reflections.

Architecture and Methodology

The core of the iVGAN framework is its one-stream architecture and its ability to adapt to downstream tasks through a multi-functional extension.

One-Stream Generation

Instead of splitting the video into parts, iVGAN uses a single stream of spatio-temporal (3D) convolutions. The generator takes a 100-dimensional latent code and upsamples it through four convolutional blocks to produce a $64 \times 64 \times 32$ (frames) RGB video. To stabilize training—a notorious challenge for video GANs—the authors adopt the Wasserstein GAN framework with a gradient penalty (WGAN-GP). This replaces the standard discriminator with a "critic" that provides more useful gradient information, preventing the model from collapsing into meaningless noise.

The iVGAN architecture: (Left) The basic generation framework using a 1D latent code to produce a 3D video. (Right) The multi-functional extension adding an auxiliary encoder for tasks like colorization.

Multi-functional Extension

To adapt the model for specific tasks like colorization, inpainting, or future prediction, the authors add an auxiliary encoder. This encoder maps a "perturbed" input (e.g., a grayscale video or a damaged clip) into the latent space. The model is then trained with a dual objective: the standard GAN loss to ensure realism and an application-specific $L_2$ reconstruction loss to ensure the output matches the input's content. In tasks like colorization, the GAN loss acts as a powerful regularizer, forcing the model to understand the underlying semantics of the scene (e.g., recognizing that grass should be green).

Experimental Evaluation

The authors evaluated iVGAN on two primary datasets: a benchmark of Stabilized Golf Clips and a new, more challenging Airplanes Dataset compiled from YouTube-BoundingBoxes. Unlike the golf dataset, the airplane videos are unprocessed, containing moving backgrounds, panning cameras, and varying illumination.

Key Results

  • Human Preference: In Amazon Mechanical Turk (MTurk) evaluations, users preferred iVGAN samples over TGAN samples 59.7% of the time on the challenging airplane dataset.
  • Robustness to Unstabilized Data: While older models like VGAN often failed to produce meaningful images on the airplane dataset, iVGAN remained stable and produced realistic motion.
  • Temporal Consistency: Qualitatively, iVGAN's colorization is significantly more stable over time compared to frame-by-frame methods, which often suffer from flickering.
Qualitative results showing video sequences generated by iVGAN across various scenes, demonstrating temporal consistency and spatial realism.

Discussion and Future Work

The shift to a one-stream model was made possible by the improved stability of WGAN-GP. This approach allows for more natural conjoint learning of foreground and background. However, limitations remain. Like many GAN-based models, foreground objects can sometimes appear blurry, a side effect of the $L_2$ loss used in multi-functional extensions. Additionally, the model occasionally "hallucinates" or omits objects in future prediction tasks.

Currently limited to a $64 \times 64$ resolution, future work could incorporate progressive growing techniques or deeper architectures like ResNet to scale to higher resolutions and finer details. Despite these challenges, iVGAN represents the first successful use of GANs for complex video tasks like colorization and inpainting, setting a new baseline for video generation in the wild.

Summary updated

BibTeX
@misc{kratzwald2017towards,
  author = {Bernhard Kratzwald and Zhiwu Huang and Danda Pani Paudel and Luc Van Gool},
  title = {{Towards an Understanding of Our World by GANing Videos in the Wild}},
  year = {2017},
  eprint = {1711.11453},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1711.11453},
}
Figure