Download model.py from Suzyloubna/Bridge.Semantic.Segmentation: direct link, hf CLI and curl.
- Browser
- Download file 283 Bytes
-
https://huggingface.co/spaces/Suzyloubna/Bridge.Semantic.Segmentation/resolve/main/model.py
- Command line
-
hf download hf://spaces/Suzyloubna/Bridge.Semantic.Segmentation/model.py
-
curl -L -o model.py https://huggingface.co/spaces/Suzyloubna/Bridge.Semantic.Segmentation/resolve/main/model.py
283 Bytes
| import segmentation_models_pytorch as smp | |
| def get_model(): | |
| model = smp.UnetPlusPlus( | |
| encoder_name="resnext101_32x4d", | |
| encoder_weights=None, # using your own trained weights | |
| in_channels=3, | |
| classes=3, | |
| activation=None | |
| ) | |
| return model |