Skip to content

Instantly share code, notes, and snippets.

Avatar

Praateek Mahajan praateekmahajan

View GitHub Profile
@praateekmahajan
praateekmahajan / padding_slow.ipynb
Last active Dec 16, 2020
Pack padded sequence is slower than unpacked sequence
View padding_slow.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@praateekmahajan
praateekmahajan / moving_mnist.py
Last active Sep 14, 2021 — 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
View moving_mnist.py
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