From 8f1d1d7b4c321a42af7e7428f43d39e0e3d72847 Mon Sep 17 00:00:00 2001 From: Nic Ma Date: Mon, 8 Feb 2021 18:11:28 +0800 Subject: [PATCH 1/2] [DLMED] fix typo in the doc-string of SegResNet Signed-off-by: Nic Ma --- monai/networks/nets/segresnet.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/monai/networks/nets/segresnet.py b/monai/networks/nets/segresnet.py index c7a085b569..21691a6332 100644 --- a/monai/networks/nets/segresnet.py +++ b/monai/networks/nets/segresnet.py @@ -40,11 +40,11 @@ class SegResNet(nn.Module): use_conv_final: if add a final convolution block to output. Defaults to ``True``. blocks_down: number of down sample blocks in each layer. Defaults to ``[1,2,2,4]``. blocks_up: number of up sample blocks in each layer. Defaults to ``[1,1,1]``. - upsample_mode: [``"transpose"``, ``"nontrainable"``, ``"pixelshuffle"``] + upsample_mode: [``"deconv"``, ``"nontrainable"``, ``"pixelshuffle"``] The mode of upsampling manipulations. Using the ``nontrainable`` modes cannot guarantee the model's reproducibility. Defaults to``nontrainable``. - - ``transpose``, uses transposed convolution layers. + - ``deconv``, uses deconvolution layers. - ``nontrainable``, uses non-trainable `linear` interpolation. - ``pixelshuffle``, uses :py:class:`monai.networks.blocks.SubpixelUpsample`. @@ -192,11 +192,11 @@ class SegResNetVAE(SegResNet): use_conv_final: if add a final convolution block to output. Defaults to ``True``. blocks_down: number of down sample blocks in each layer. Defaults to ``[1,2,2,4]``. blocks_up: number of up sample blocks in each layer. Defaults to ``[1,1,1]``. - upsample_mode: [``"transpose"``, ``"nontrainable"``, ``"pixelshuffle"``] + upsample_mode: [``"deconv"``, ``"nontrainable"``, ``"pixelshuffle"``] The mode of upsampling manipulations. Using the ``nontrainable`` modes cannot guarantee the model's reproducibility. Defaults to `nontrainable`. - - ``transpose``, uses transposed convolution layers. + - ``deconv``, uses deconvolution layers. - ``nontrainable``, uses non-trainable `linear` interpolation. - ``pixelshuffle``, uses :py:class:`monai.networks.blocks.SubpixelUpsample`. From db6296dc73369a951d878e80a26df39da7d394ef Mon Sep 17 00:00:00 2001 From: Nic Ma Date: Mon, 8 Feb 2021 18:24:36 +0800 Subject: [PATCH 2/2] [DLMED] update according to Yiheng's comments Signed-off-by: Nic Ma --- monai/networks/nets/segresnet.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/monai/networks/nets/segresnet.py b/monai/networks/nets/segresnet.py index 21691a6332..4626a38abd 100644 --- a/monai/networks/nets/segresnet.py +++ b/monai/networks/nets/segresnet.py @@ -44,7 +44,7 @@ class SegResNet(nn.Module): The mode of upsampling manipulations. Using the ``nontrainable`` modes cannot guarantee the model's reproducibility. Defaults to``nontrainable``. - - ``deconv``, uses deconvolution layers. + - ``deconv``, uses transposed convolution layers. - ``nontrainable``, uses non-trainable `linear` interpolation. - ``pixelshuffle``, uses :py:class:`monai.networks.blocks.SubpixelUpsample`. @@ -196,7 +196,7 @@ class SegResNetVAE(SegResNet): The mode of upsampling manipulations. Using the ``nontrainable`` modes cannot guarantee the model's reproducibility. Defaults to `nontrainable`. - - ``deconv``, uses deconvolution layers. + - ``deconv``, uses transposed convolution layers. - ``nontrainable``, uses non-trainable `linear` interpolation. - ``pixelshuffle``, uses :py:class:`monai.networks.blocks.SubpixelUpsample`.