Instructions to use hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation with Transformers:
# Load model directly from transformers import AutoProcessor, OneFormerForUniversalSegmentation processor = AutoProcessor.from_pretrained("hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation") model = OneFormerForUniversalSegmentation.from_pretrained("hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation/resolve/refs%2Fpr%2F1/special_tokens_map.json
- Command line
-
hf download hf://hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation@refs/pr/1/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/hf-internal-testing/tiny-random-OneFormerForUniversalSegmentation/resolve/refs%2Fpr%2F1/special_tokens_map.json
472 Bytes
| { | |
| "bos_token": { | |
| "content": "<|startoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "eos_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": "<|endoftext|>", | |
| "unk_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": true, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |