niftynet.network.unet_2d module¶
-
class
UNet2D(num_classes, w_initializer=None, w_regularizer=None, b_initializer=None, b_regularizer=None, acti_func='relu', name='UNet2D')[source]¶ Bases:
niftynet.network.base_net.BaseNet- A reimplementation of 2D UNet:
- Ronneberger et al., U-Net: Convolutional Networks for Biomedical Image Segmentation, MICCAI ‘15
-
class
TwoLayerConv(n_chns, conv_params)[source]¶ Bases:
niftynet.layer.base_layer.TrainableLayerTwo convolutional layers, number of output channels are
n_chnsfor both of them.–conv–conv–
-
class
CropConcat(name='crop_concat')[source]¶ Bases:
niftynet.layer.base_layer.LayerThis layer concatenates two input tensors, the first one is cropped and resized to match the second one.
This layer assumes the same amount of differences in every spatial dimension in between the two tensors.