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/utils/__init__.py from mccaly/test2: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/mccaly/test2/resolve/refs%2Fpr%2F2/mmseg/models/utils/__init__.py
- Command line
-
hf download hf://mccaly/test2@refs/pr/2/mmseg/models/utils/__init__.py
-
curl -L -o __init__.py https://huggingface.co/mccaly/test2/resolve/refs%2Fpr%2F2/mmseg/models/utils/__init__.py
366 Bytes
| from .inverted_residual import InvertedResidual, InvertedResidualV3 | |
| from .make_divisible import make_divisible | |
| from .res_layer import ResLayer | |
| from .self_attention_block import SelfAttentionBlock | |
| from .up_conv_block import UpConvBlock | |
| __all__ = [ | |
| 'ResLayer', 'SelfAttentionBlock', 'make_divisible', 'InvertedResidual', | |
| 'UpConvBlock', 'InvertedResidualV3' | |
| ] | |