Instructions to use ahmedabdo/video-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ahmedabdo/video-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("video-classification", model="ahmedabdo/video-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForVideoClassification processor = AutoImageProcessor.from_pretrained("ahmedabdo/video-classifier") model = AutoModelForVideoClassification.from_pretrained("ahmedabdo/video-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from ahmedabdo/video-classifier: direct link, hf CLI and curl.
- Browser
- Download file 821 Bytes
-
https://huggingface.co/ahmedabdo/video-classifier/resolve/main/config.json
- Command line
-
hf download hf://ahmedabdo/video-classifier/config.json
-
curl -L -o config.json https://huggingface.co/ahmedabdo/video-classifier/resolve/main/config.json
821 Bytes
| { | |
| "_name_or_path": "MCG-NJU/videomae-base", | |
| "architectures": [ | |
| "VideoMAEForVideoClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "decoder_hidden_size": 384, | |
| "decoder_intermediate_size": 1536, | |
| "decoder_num_attention_heads": 6, | |
| "decoder_num_hidden_layers": 4, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 768, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "videomae", | |
| "norm_pix_loss": true, | |
| "num_attention_heads": 12, | |
| "num_channels": 3, | |
| "num_frames": 16, | |
| "num_hidden_layers": 12, | |
| "patch_size": 16, | |
| "problem_type": "single_label_classification", | |
| "qkv_bias": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.37.0", | |
| "tubelet_size": 2, | |
| "use_mean_pooling": false | |
| } | |