Skip to content

Instantly share code, notes, and snippets.

View chakkritte's full-sized avatar
🇦🇺
Working from Australia

Chakkrit Termritthikun chakkritte

🇦🇺
Working from Australia
View GitHub Profile
-- Xception model
-- a Torch7 implementation of: https://arxiv.org/abs/1610.02357
-- E. Culurciello, October 2016
require 'nn'
local nClasses = 1000
function nn.SpatialSeparableConvolution(nInputPlane, nOutputPlane, kW, kH)
local block = nn.Sequential()
block:add(nn.SpatialConvolutionMap(nn.tables.oneToOne(nInputPlane), kW,kH, 1,1, 1,1))