Spatial transformer layer (2-D)

Value

resampled batch images.

Arguments

inputs

list of size 2 where the first element are the images. The second element are the weights.

resampledSize

size of the resampled output images.

Details

$initialize instantiates a new class.

$call main body.

$compute_output_shape computes the output shape.

Author

Tustison NJ

Examples

resampledSize = c(30L, 30L) model = SpatialTransformerLayer2D$new(resampledSize)
#> Error in py_discover_config(required_module, use_environment): Python specified in RETICULATE_PYTHON (/Users/ntustison/anaconda3/envs/antsx/bin/python3) does not exist
model$initialize(resampledSize)
#> Error in eval(expr, envir, enclos): object 'model' not found
testthat::expect_error(model$initialize(5)) model$compute_output_shape(input_shape = c(25, 25))
#> Error in eval(expr, envir, enclos): object 'model' not found