File size: 1,407 Bytes
a859676
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
af8eef3
 
a859676
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
license: mit
library_name: segmentation-models-pytorch
tags:
- semantic-segmentation
- pytorch
- segmentation-models-pytorch
languages:
- python
pipeline_tag: image-segmentation
---
# FPN Model Card

Table of Contents:
- [Load trained model](#load-trained-model)
- [Model init parameters](#model-init-parameters)
- [Model metrics](#model-metrics)
- [Dataset](#dataset)

## Load trained model
```python
import segmentation_models_pytorch as smp

model = smp.FPN.from_pretrained("oxford-pet-segmentation")
```

## Model init parameters
```python
model_init_params = {
    "encoder_name": "resnet34",
    "encoder_depth": 5,
    "encoder_weights": "imagenet",
    "decoder_pyramid_channels": 256,
    "decoder_segmentation_channels": 128,
    "decoder_merge_policy": "add",
    "decoder_dropout": 0.2,
    "in_channels": 3,
    "classes": 1,
    "activation": None,
    "upsampling": 4,
    "aux_params": None
}
```

## Model metrics
```json
[
    {
        "test_per_image_iou": 0.8471360802650452,
        "test_dataset_iou": 0.8543952107429504
    }
]
```

## Dataset
Dataset name: Oxford Pet

## More Information
- Library: https://github.com/qubvel/segmentation_models.pytorch
- Docs: https://smp.readthedocs.io/en/latest/

This model has been pushed to the Hub using the [PytorchModelHubMixin](https://huggingface.co/docs/huggingface_hub/package_reference/mixins#huggingface_hub.PyTorchModelHubMixin)