Skip to content

Instantly share code, notes, and snippets.

View tencia's full-sized avatar

Tencia Lee tencia

  • Los Angeles, CA
View GitHub Profile
import lasagne as nn
import numpy as np
import theano
import theano.tensor as T
import math
from lasagne.utils import unroll_scan
from lasagne.layers import LSTMLayer
from lasagne.layers import Gate
from lasagne.layers import Layer
from PIL import Image
import sys
import os
import math
import numpy as np
###########################################################################################
# script to generate moving mnist video dataset (frame by frame) as described in
# [1] arXiv:1502.04681 - Unsupervised Learning of Video Representations Using LSTMs
# Srivastava et al
@tencia
tencia / vae_simple.py
Last active February 25, 2020 13:09
Variational Auto-Encoder using Lasagne
import sys
import os
import numpy as np
import theano
import theano.tensor as T
import lasagne as nn
import time
from PIL import Image
from scipy.stats import norm
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams