You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: monai/networks/nets/autoencoderkl.py
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ class _Upsample(nn.Module):
38
38
Convolution-based upsampling layer.
39
39
40
40
Args:
41
-
spatial_dims: number of spatial dimensions (1D, 2D, 3D).
41
+
spatial_dims: number of spatial dimensions, could be 1, 2, or 3.
42
42
in_channels: number of input channels to the layer.
43
43
use_convtranspose: if True, use ConvTranspose to upsample feature maps in decoder.
44
44
"""
@@ -98,7 +98,7 @@ class _Downsample(nn.Module):
98
98
Convolution-based downsampling layer.
99
99
100
100
Args:
101
-
spatial_dims: number of spatial dimensions (1D, 2D, 3D).
101
+
spatial_dims: number of spatial dimensions, could be 1, 2, or 3.
102
102
in_channels: number of input channels.
103
103
"""
104
104
@@ -132,7 +132,7 @@ class _ResBlock(nn.Module):
132
132
residual connection between input and output.
133
133
134
134
Args:
135
-
spatial_dims: number of spatial dimensions (1D, 2D, 3D).
135
+
spatial_dims: number of spatial dimensions, could be 1, 2, or 3.
136
136
in_channels: input channels to the layer.
137
137
norm_num_groups: number of groups involved for the group normalisation layer. Ensure that your number of
138
138
channels is divisible by this number.
@@ -206,7 +206,7 @@ class _AttentionBlock(nn.Module):
206
206
Attention block.
207
207
208
208
Args:
209
-
spatial_dims: number of spatial dimensions (1D, 2D, 3D).
209
+
spatial_dims: number of spatial dimensions, could be 1, 2, or 3.
210
210
num_channels: number of input channels.
211
211
num_head_channels: number of channels in each attention head.
212
212
norm_num_groups: number of groups involved for the group normalisation layer. Ensure that your number of
@@ -325,7 +325,7 @@ class Encoder(nn.Module):
325
325
Convolutional cascade that downsamples the image into a spatial latent space.
326
326
327
327
Args:
328
-
spatial_dims: number of spatial dimensions (1D, 2D, 3D).
328
+
spatial_dims: number of spatial dimensions, could be 1, 2, or 3.
329
329
in_channels: number of input channels.
330
330
channels: sequence of block output channels.
331
331
out_channels: number of channels in the bottom layer (latent space) of the autoencoder.
@@ -463,7 +463,7 @@ class Decoder(nn.Module):
463
463
Convolutional cascade upsampling from a spatial latent space into an image space.
464
464
465
465
Args:
466
-
spatial_dims: number of spatial dimensions (1D, 2D, 3D).
466
+
spatial_dims: number of spatial dimensions, could be 1, 2, or 3.
467
467
channels: sequence of block output channels.
468
468
in_channels: number of channels in the bottom layer (latent space) of the autoencoder.
469
469
out_channels: number of output channels.
@@ -611,7 +611,7 @@ class AutoencoderKL(nn.Module):
611
611
and Pinaya et al. "Brain Imaging Generation with Latent Diffusion Models" https://arxiv.org/abs/2209.07162
612
612
613
613
Args:
614
-
spatial_dims: number of spatial dimensions (1D, 2D, 3D).
614
+
spatial_dims: number of spatial dimensions, could be 1, 2, or 3.
615
615
in_channels: number of input channels.
616
616
out_channels: number of output channels.
617
617
num_res_blocks: number of residual blocks (see _ResBlock) per level.
0 commit comments