bob.ip.binseg.models.unet¶
Functions
|
Builds U-Net segmentation network by adding backbone and head together |
Classes
|
UNet head module |
- class bob.ip.binseg.models.unet.UNet(in_channels_list=None, pixel_shuffle=False)[source]¶
Bases:
Module
UNet head module
- Parameters
in_channels_list (list) – number of channels for each feature map that is returned from backbone
- bob.ip.binseg.models.unet.unet(pretrained_backbone=True, progress=True)[source]¶
Builds U-Net segmentation network by adding backbone and head together
- Parameters
pretrained_backbone (
bool
, Optional) – If set toTrue
, then loads a pre-trained version of the backbone (not the head) for the DRIU network using VGG-16 trained for ImageNet classification.progress (
bool
, Optional) – If set toTrue
, and you decided to use apretrained_backbone
, then, shows a progress bar of the backbone model downloading if download is necesssary.
- Returns
module – Network model for U-Net
- Return type