diffusion_models.spine_dataset.spatial_transformer.SpatialTransformer¶
- class diffusion_models.spine_dataset.spatial_transformer.SpatialTransformer(size, mode='bilinear')[source]¶
Bases:
Module
N-D Spatial Transformer.
- __init__(size, mode='bilinear')[source]¶
Initialize Spatial Transformer.
- Parameters:
size (tuple) – Size tuple, shape
mode (str, optional) – Which mode to use in sampling. Defaults to “bilinear”.
Methods