U-Net ResNet34¶
-
class
src.pipelines.tensorflow_v2.models.unet_resnet.ResBlock(*args, **kwargs)[source]¶ A Residual block
-
class
src.pipelines.tensorflow_v2.models.unet_resnet.UnetResnet(output_channels, activation='relu', initializer='he_normal', filters=3)[source]¶ A U-Net model, which has a ResNet 34 backbone
-
call(x)[source]¶ Applies a U-Net ResNet34 model to the input.
- Parameters
inputs – an input image
- Return type
Tensor- Returns
the output of a U-Net ResNet34 model
-
model(shape=(512, 512, 1))[source]¶ Returns a U-Net model as tf.keras.Model. This is a workaround to use the functional api, which allows the model to be viewed.
- Parameters
shape (
Tuple[int,int,int]) – the shape of the input- Return type
Model- Returns
the tf.keras.Model instantiated using the functional api
-