LION.models.CNNs.UNets.ResUNet3D¶
Classes
|
Downscaling with maxpool |
|
A 3D residual U-Net (Yu et al., 2021): four scales of residual units, max pooling down and transposed convolutions up, with skip connections and a sigmoid output (e.g. for segmentation). |
|
Convolutions (3D, with batch normalisation and |
|
Upscaling with transpose conv |
- class LION.models.CNNs.UNets.ResUNet3D.Down[source]¶
Bases:
ModuleDownscaling with maxpool
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- class LION.models.CNNs.UNets.ResUNet3D.ResUNet3D(model_parameters=None)[source]¶
Bases:
LIONmodelA 3D residual U-Net (Yu et al., 2021): four scales of residual units, max pooling down and transposed convolutions up, with skip connections and a sigmoid output (e.g. for segmentation). Takes 3D images (B, C, D, H, W).
model_parameters(default_parameters()):down_1_channelstodown_4_channels,latent_channels,up_1_channelstoup_4_channels,last_block: each unit’s channels, a list (its input, then each convolution’s output);activation: “ReLU”, “LeakyReLU” or “None”.
Initialize internal Module state, shared by both nn.Module and ScriptModule.
- static default_parameters()[source]¶
8 to 128 channels over four scales, one input and one output channel (see the class).
- class LION.models.CNNs.UNets.ResUNet3D.ResidualUnit(channels, relu_type='ReLU', kernel_size=3, relu_last=True)[source]¶
Bases:
ModuleConvolutions (3D, with batch normalisation and
relu_type) through thechannelslisted, plus a 1x1x1 convolution of the input (the residual).Initialize internal Module state, shared by both nn.Module and ScriptModule.