Instructions to use mccaly/test2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mccaly/test2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="mccaly/test2")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, UperNetForSemanticSegmentation processor = AutoImageProcessor.from_pretrained("mccaly/test2") model = UperNetForSemanticSegmentation.from_pretrained("mccaly/test2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download mmseg/models/__init__.py from mccaly/test2: direct link, hf CLI and curl.
- Browser
- Download file 489 Bytes
-
https://huggingface.co/mccaly/test2/resolve/main/mmseg/models/__init__.py
- Command line
-
hf download hf://mccaly/test2/mmseg/models/__init__.py
-
curl -L -o __init__.py https://huggingface.co/mccaly/test2/resolve/main/mmseg/models/__init__.py
489 Bytes
| from .backbones import * # noqa: F401,F403 | |
| from .builder import (BACKBONES, HEADS, LOSSES, SEGMENTORS, build_backbone, | |
| build_head, build_loss, build_segmentor) | |
| from .decode_heads import * # noqa: F401,F403 | |
| from .losses import * # noqa: F401,F403 | |
| from .necks import * # noqa: F401,F403 | |
| from .segmentors import * # noqa: F401,F403 | |
| __all__ = [ | |
| 'BACKBONES', 'HEADS', 'LOSSES', 'SEGMENTORS', 'build_backbone', | |
| 'build_head', 'build_loss', 'build_segmentor' | |
| ] | |