From f934734bdaf7ce8aedd3d688ac5f9223e889163e Mon Sep 17 00:00:00 2001 From: Nic Ma Date: Fri, 27 Mar 2020 10:52:31 +0800 Subject: [PATCH] [DLMED] add introduction of layer factory to highlights --- docs/source/highlights.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/source/highlights.md b/docs/source/highlights.md index f7895bf65d5..113fc1a1c5c 100644 --- a/docs/source/highlights.md +++ b/docs/source/highlights.md @@ -72,7 +72,16 @@ torch.backends.cudnn.benchmark = False There are domain-specific loss functions in the medical research area which are different from the generic computer vision ones. As an important module of MONAI, these loss functions are implemented in PyTorch, such as Dice loss and generalized Dice loss. ## Network architectures -Some deep neural network architectures have shown to be particularly effective for medical imaging analysis tasks. MONAI implements reference networks with the aims of both flexibility and code readability. +Some deep neural network architectures have shown to be particularly effective for medical imaging analysis tasks. MONAI implements reference networks with the aims of both flexibility and code readability. +In order to leverage the common network layers and blocks, MONAI provides several predefined layers and blocks which are compatible with 1D, 2D and 3D networks. Users can easily integrate the layer factories in their own networks. +For example: +```py +# add Convolution layer to the network which is compatible with different spatial dimensions. +dimension = 3 +name = Conv.CONVTRANS +conv_type = Conv[name, dimension] +add_module('conv1', conv_type(in_channels, out_channels, kernel_size=1, bias=False)) +``` ## Evaluation To run model inferences and evaluate the model quality, MONAI provides reference implementations for the relevant widely-used approaches. Currently, several popular evaluation metrics and inference patterns are included: