OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Adversarial Video Generation

Adversarial Video Generation is a Python and TensorFlow implementation of a generative adversarial network for predicting future video frames. A generator predicts the next frame from the previous four, while a discriminator distinguishes generated frames from real ones. The repository includes scripts for processing frame-sequence data and training or testing the model, and is licensed under MIT.

Independent OpenViST project profile, based on linked sources.

Adversarial Video Generation — OpenViST project profile in AI Models.
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use it when you want to study or prototype frame-by-frame video prediction from sequential image data, particularly when comparing adversarial and non-adversarial training.

Who it is for

  • Researchers exploring adversarial approaches to video-frame prediction.
  • Developers prototyping a next-frame forecasting model from sequential image data.
  • Learners examining a TensorFlow GAN implementation with frame preprocessing and recursive prediction.

Documented uses

  • Predict a video’s next frame from its four preceding frames.
  • Prepare organized video-frame sequences as cropped training clips.
  • Train or test adversarial and non-adversarial prediction runs.
  • Generate a sequence of future frames by recursively feeding predictions back as input.
Before you choose

Requirements & limits

  • The model uses four preceding frames to predict the next frame.
  • Training data must be arranged as train and test directories containing separate folders for each video.
  • The preprocessing script extracts random 32-by-32-pixel crops and filters for clips with movement.
  • The README reports sharper-looking long sequences in its adversarial example, but no significant difference in its stated PSNR and Sharp Difference measurements.
  • The example receives no action inputs, limiting its ability to predict specific changes in motion.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Prepare frame sequences and process training clips

Turn organized training and test video frames into processed clips for model training.

Before you start

  • A local copy of the repository.
  • Training and test frames organized in separate directories, with each video in its own subdirectory.
  • A destination directory for processed clips.

Steps

  1. Place the prepared frame-sequence directories in the locations you intend to use for training and testing.

  2. From the Code directory, run the command below with -t pointing to the full training-frame directory and -c pointing to the clips destination.

    Documented command
    python process_data
  3. Optionally set -n to choose the number of clips or use -o to overwrite prior processed data.

Expected outcome

The script processes random 32-by-32-pixel crops into clips for training.

Guide limitations

  • The README says processing can take a few hours depending on the number of clips.
  • The clips destination may contain many files; the README cautions against listing the directory with ls.
Source-based practical guide

Train or test the frame-prediction model

Run the repository’s training or testing workflow using processed clips and, optionally, a saved model.

Before you start

  • A local copy of the repository.
  • Processed training clips and a test-frame directory.
  • For test-only use, a saved model path; the README provides a trained-model download for its Ms. Pac-Man example.

Steps

  1. From the Code directory, run the command below.

    Documented command
    python avg_runner.py
  2. Set the documented options as needed, including -t for the test-image directory, -l for a saved model, and -r for the number of recursive predictions.

  3. Use -T to run only a test step, or set -a to choose whether adversarial training is used.

Expected outcome

The runner trains or tests the network and saves run output under the selected name.

Guide limitations

  • The README’s reported training time is about 24 hours for its specific Ms. Pac-Man experiment on a GTX 980TI GPU.
  • Recursive predictions are not conditioned on game actions, so the example cannot reliably forecast specific turns.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
7 November 2026
Original website title
dyelax/Adversarial_Video_Generation · Official homepage title · retained in its source language

Related options

VideoPredictionICLR2016 — The README identifies this as the authors’ official Torch-based code for the paper implemented here.