lua---nnx
lua---nnx copied to clipboard
Documentation for SpatialPyramid
There is very little documentation in the SpatialPyramid function, and this makes it difficult for newcomers to understand what is going on. I have been able to understand what the module does, i.e. take a set of scales and a set of models, and apply each model to the corresponding scaled version of an input image. However, what are all the other parameters?
function SpatialPyramid:__init(ratios, processors, kW, kH, dW, dH, xDimIn, yDimIn,
xDimOut, yDimOut, prescaled_input)
What do kW, kH, dW, dH, DimIn, yDimIn, xDimOut, yDimOut represent?
I also have the same doubt. After downscale the image, there is a process nn.SpatialPadding(), which involves those variable. But I don't understand why add such process ?
nn.SpatialPadding is used for negative padding (i.e. cropping the image).