Skip to content

alecwangcq/Conv_LSTM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TODO


download Moving MNIST

See this link, or download directly.

cd ./data
wget http://www.cs.toronto.edu/~nitish/unsupervised_video/mnist_test_seq.npy

Split datasets

import numpy as np

n_train = 6000
n_val = 1000
n_test = 3000
n_total = n_train + n_val + n_test

data = np.load('./data/mnist_test_seq.npy')
indices = range(n_total)
np.random.shuffle(indices)

train = data[:, :n_train]
val = data[:, n_train:n_train+n_val]
test = data[:, n_train+n_val:n_total]

np.save('./data/mmnist_train.npy', train)
np.save('./data/mmnist_val.npy', val)
np.save('./data/mmnist_test.npy', test)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages