attention_unet
AttentionUNet
¶
Attention based UNet implementation in TensorFlow.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
input_size |
Tuple[int, int, int]
|
The size of the input tensor (height, width, channels). |
(128, 128, 1)
|
Raises:
Type | Description |
---|---|
ValueError
|
Length of |
ValueError
|
|
Returns:
Type | Description |
---|---|
Model
|
A TensorFlow Attention UNet model. |
Source code in fastestimator/fastestimator/architecture/tensorflow/attention_unet.py
attention_block
¶
An attention unit for Attention Unet.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
n_filters |
int
|
How many filters for the convolution layer. |
required |
decoder_input |
Tensor
|
Input tensor in the decoder section. |
required |
encoder_input |
Tensor
|
Input tensor in the encoder section. |
required |
Return
Output Keras tensor.