Skip to content

Instantly share code, notes, and snippets.

View praateekmahajan's full-sized avatar

Praateek Mahajan praateekmahajan

View GitHub Profile
@praateekmahajan
praateekmahajan / moving_mnist.py
Last active December 10, 2021 13:47 — forked from tencia/moving_mnist.py
Generate Moving MNIST dataset and save it as npz or jpeg. Commented and Python 3 Version of : https://gist.github.com/tencia/afb129122a64bde3bd0c
import math
import os
import sys
import numpy as np
from PIL import Image
###########################################################################################
# script to generate moving mnist video dataset (frame by frame) as described in