arch

The arch config group determines the model architecture used by mml. Currently there are two backbone libraries: timm and segmentation-models-pytorch. The former supports classification and regression tasks while the latter supports classification and segmentation tasks.

Default config option is arch=timm. Call arch=smp for segmentation models.

timm

name
default: resnet34
pretrained
default: true
drop_rate
default: 0.
  • dropout rate, set to some value within [0, 1), will be used to initialize a torch.nn.Dropout layer at the beginning of each classifier head

smp

arch
default: unet
  • segmentation architecture, passed to smp.create_model(arch=…)

  • options are [unet, unetplusplus, manet, linknet, fpn, pspnet, deeplabv3, deeplapv3plus, pan]

encoder
default: tu-resnet34
weights
default: imagenet