Visualization of Moving MNIST Dataset

This Python script showcases how to use our StreamDataLoader and StreamDataset classes with Moving MNIST Dataset.

The source code of this sample can be found in <install-prefix>/share/metavision/sdk/ml/python_samples/viz_moving_mnist when installing Metavision SDK from installer or packages. For other deployment methods, check the page Path of Samples.

Expected Output

A video showing Moving MNIST Dataset.

Setup & requirements

Run the script by providing the path to a directory containing MNIST dataset. If the directory doesn’t exist or doesn’t contain MNIST, the dataset will be downloaded and saved in the specified location.

How to start

To run the script:


python3 /path/to/data


python /path/to/data

To find the full list of options, run:


python3 --help


python --help