Table of Contents:
import segmentation_models_pytorch as smp
model = smp.from_pretrained("<save-directory-or-this-repo>")
model_init_params = {
"encoder_name": "resnet34",
"encoder_depth": 5,
"encoder_weights": "imagenet",
"decoder_use_batchnorm": True,
"decoder_channels": (256, 128, 64, 32, 16),
"decoder_attention_type": None,
"in_channels": 3,
"classes": 1,
"activation": None,
"aux_params": None
}
[
{
"test_per_image_iou": 0.7609480023384094,
"test_dataset_iou": 0.7674582004547119
}
]
Dataset name: Oxford Pet
This model has been pushed to the Hub using the PytorchModelHubMixin