Skip to content

Instantly share code, notes, and snippets.

View praateekmahajan's full-sized avatar

Praateek Mahajan praateekmahajan

  • NVIDIA
  • San Francisco, California
View GitHub Profile
@praateekmahajan
praateekmahajan / padding_slow.ipynb
Last active December 16, 2020 05:05
Pack padded sequence is slower than unpacked sequence
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 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