Skip to content

Instantly share code, notes, and snippets.

View EricFalkenberg's full-sized avatar

Eric Falkenberg EricFalkenberg

View GitHub Profile
@EricFalkenberg
EricFalkenberg / demo.lua
Last active March 16, 2016 19:48
Torch7 Convolutional Demo
require 'nn'
-- Uncomment if you do have not yet downloaded this dataset
-- os.execute('wget -c https://s3.amazonaws.com/torch7/data/cifar10torchsmall.zip')
-- os.execute('unzip cifar10torchsmall.zip')
trainset = torch.load('cifar10-train.t7')
trainset.data = trainset.data:double()
testset = torch.load('cifar10-test.t7')
classes = {'airplane', 'automobile', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck'}