unet
UNet
¶
Bases: Module
A standard UNet implementation in PyTorch.
This class is intentionally not @traceable (models and layers are handled by a different process).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_size |
Tuple[int, int, int]
|
The size of the input tensor (channels, height, width). |
(1, 128, 128)
|
output_channel |
int
|
The number of output channels. |
1
|
Raises:
Type | Description |
---|---|
ValueError
|
Length of |
ValueError
|
|
Source code in fastestimator/fastestimator/architecture/pytorch/unet.py
UNetDecoderBlock
¶
Bases: Module
A UNet decoder block.
This class is intentionally not @traceable (models and layers are handled by a different process).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
in_channels |
int
|
How many channels enter the decoder. |
required |
mid_channels |
int
|
How many channels are used for the decoder's intermediate layer. |
required |
out_channels |
int
|
How many channels leave the decoder. |
required |
Source code in fastestimator/fastestimator/architecture/pytorch/unet.py
UNetEncoderBlock
¶
Bases: Module
A UNet encoder block.
This class is intentionally not @traceable (models and layers are handled by a different process).
Parameters:
Name | Type | Description | Default |
---|---|---|---|
in_channels |
int
|
How many channels enter the encoder. |
required |
out_channels |
int
|
How many channels leave the encoder. |
required |