Video Classification
Transformers
PyTorch
English
xclip
feature-extraction
vision
Eval Results (legacy)
Instructions to use microsoft/xclip-base-patch16-ucf-4-shot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/xclip-base-patch16-ucf-4-shot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("video-classification", model="microsoft/xclip-base-patch16-ucf-4-shot")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("microsoft/xclip-base-patch16-ucf-4-shot") model = AutoModel.from_pretrained("microsoft/xclip-base-patch16-ucf-4-shot", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from microsoft/xclip-base-patch16-ucf-4-shot: direct link, hf CLI and curl.
- Browser
- Download file 472 Bytes
-
https://huggingface.co/microsoft/xclip-base-patch16-ucf-4-shot/resolve/81e908fa8780eb6707289f59d8b8fce5179fc4e2/special_tokens_map.json
- Command line
-
hf download hf://microsoft/xclip-base-patch16-ucf-4-shot@81e908fa8780eb6707289f59d8b8fce5179fc4e2/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/microsoft/xclip-base-patch16-ucf-4-shot/resolve/81e908fa8780eb6707289f59d8b8fce5179fc4e2/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 | |
| } | |
| } | |