| | --- |
| | library_name: segmentation-models-pytorch |
| | license: mit |
| | pipeline_tag: image-segmentation |
| | tags: |
| | - model_hub_mixin |
| | - pytorch_model_hub_mixin |
| | - segmentation-models-pytorch |
| | - semantic-segmentation |
| | - pytorch |
| | languages: |
| | - python |
| | --- |
| | # DPT 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.from_pretrained("<save-directory-or-this-repo>") |
| | ``` |
| |
|
| | ## Model init parameters |
| | ```python |
| | model_init_params = { |
| | "encoder_name": "tu-test_vit", |
| | "encoder_depth": 4, |
| | "encoder_weights": "imagenet", |
| | "encoder_output_indices": None, |
| | "decoder_readout": "cat", |
| | "decoder_intermediate_channels": (16, 32, 64, 64), |
| | "decoder_fusion_channels": 16, |
| | "in_channels": 3, |
| | "classes": 1, |
| | "activation": None, |
| | "aux_params": None, |
| | "dynamic_img_size": True |
| | } |
| | ``` |
| |
|
| | ## Model metrics |
| | [More Information Needed] |
| |
|
| | ## Dataset |
| | Dataset name: [More Information Needed] |
| |
|
| | ## 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) |