Instructions to use shi-labs/oneformer_ade20k_swin_tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use shi-labs/oneformer_ade20k_swin_tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-segmentation", model="shi-labs/oneformer_ade20k_swin_tiny")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, OneFormerForUniversalSegmentation processor = AutoProcessor.from_pretrained("shi-labs/oneformer_ade20k_swin_tiny") model = OneFormerForUniversalSegmentation.from_pretrained("shi-labs/oneformer_ade20k_swin_tiny", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from shi-labs/oneformer_ade20k_swin_tiny: direct link, hf CLI and curl.
- Browser
- Download file 807 Bytes
-
https://huggingface.co/shi-labs/oneformer_ade20k_swin_tiny/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://shi-labs/oneformer_ade20k_swin_tiny/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/shi-labs/oneformer_ade20k_swin_tiny/resolve/main/tokenizer_config.json
807 Bytes
| { | |
| "bos_token": { | |
| "__type": "AddedToken", | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "__type": "AddedToken", | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "errors": "replace", | |
| "model_max_length": 1000000000000000019884624838656, | |
| "name_or_path": "shi-labs/oneformer_ade20k_swin_tiny", | |
| "pad_token": "<|endoftext|>", | |
| "processor_class": "OneFormerProcessor", | |
| "special_tokens_map_file": null, | |
| "tokenizer_class": "CLIPTokenizer", | |
| "unk_token": { | |
| "__type": "AddedToken", | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |