xception.imagenet / README.md
qubvel-hf's picture
qubvel-hf HF Staff
Upload folder using huggingface_hub
b313b80 verified
---
library_name: segmentation-models-pytorch
license: other
pipeline_tag: image-classification
tags:
- segmentation-models-pytorch
- image-classification
- pytorch
- xception
languages:
- python
---
# Model card for xception.
This repository contains the `imagenet` pre-trained weights for the `xception` model used as
encoder in the [segmentation-models-pytorch](https://github.com/qubvel-org/segmentation_models.pytorch) library.
### Example usage:
1. Install the library:
```bash
pip install segmentation-models-pytorch
```
2. Use the encoder in your code:
```python
import segmentation_models_pytorch as smp
model = smp.Unet("xception", encoder_weights="imagenet")
```
### References
- Github: https://github.com/qubvel/segmentation_models.pytorch
- Docs: https://smp.readthedocs.io/en/latest/
- Original weights URL: http://data.lip6.fr/cadene/pretrainedmodels/xception-43020ad28.pth