backbone
create_smp_backbone(arch, encoder_name, freeze_encoder=False, in_channels=3, num_classes=0, **kwargs)
¶
Create Segmentation.models.pytorch model backbone Args: arch: architecture name encoder_name: architecture name freeze_encoder: freeze encoder or not in_channels: number of input channels num_classes: number of classes **kwargs: extra arguments for model (for example classification head).
Source code in quadra/modules/backbone.py
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|