lua---nnx icon indicating copy to clipboard operation
lua---nnx copied to clipboard

Documentation for SpatialPyramid

Open dasguptar opened this issue 10 years ago • 2 comments

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?

dasguptar avatar Nov 13 '14 21:11 dasguptar

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 ?

hogwild avatar Sep 22 '15 23:09 hogwild

nn.SpatialPadding is used for negative padding (i.e. cropping the image).

soumith avatar Sep 23 '15 00:09 soumith