Video Classification
Transformers
PyTorch
Safetensors
English
xclip
feature-extraction
vision
Eval Results (legacy)
Instructions to use microsoft/xclip-base-patch16-zero-shot with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/xclip-base-patch16-zero-shot with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("video-classification", model="microsoft/xclip-base-patch16-zero-shot")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("microsoft/xclip-base-patch16-zero-shot") model = AutoModel.from_pretrained("microsoft/xclip-base-patch16-zero-shot") - Notebooks
- Google Colab
- Kaggle
Inference API not working
#1
by bgffgb - opened
The inference API interfacing does not seem to be correctly set up.
A simple curl request to reproduce the error:
curl -X POST -H "Authorization: Bearer hf_<API KEY>" -H "Content-Type: application/json" -d '{"inputs": "Any text", "parameters": {"return_embeddings": true}}' https://api-inference.huggingface.co/models/microsoft/xclip-base-patch16-zero-shot
gets
{"error":"unknown error","warnings":["There was an inference error: unknown error: 'NoneType' object has no attribute 'shape'"]}