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