In [1]:
from lasagne.layers import *
from lasagne.nonlinearities import *
from lasagne import init
In [2]:
nn = InputLayer([None,3,100,100])
nn = Conv2DLayer(nn,num_filters=512, filter_size=(3,3),
W = init.Constant(0))
nn = Conv2DLayer(nn,num_filters=128,filter_size=(3,3),
W = init.Constant(0))
nn = Conv2DLayer(nn,num_filters=32,filter_size=(3,3),
W = init.Constant(0))
nn = Pool2DLayer(nn,pool_size=(6,6),mode='max')
nn = Conv2DLayer(nn,num_filters=8,filter_size=(10,10),
W = init.Normal(std=0.01))
nn = Conv2DLayer(nn,num_filters=8,filter_size=(10,10),
W = init.Normal(std=0.01))
nn = Pool2DLayer(nn,pool_size=(3,3),mode='max')
nn = DenseLayer(nn,512,nonlinearity=softmax)
nn = DropoutLayer(nn,p=0.5)
nn = DenseLayer(nn,512,nonlinearity=softmax)
nn = DenseLayer(nn,10,nonlinearity=sigmoid)
nn = DropoutLayer(nn,p=0.5)
In [ ]: