Instructions to use ai-forever/kandinsky-videomae-large-camera-motion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ai-forever/kandinsky-videomae-large-camera-motion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("video-classification", model="ai-forever/kandinsky-videomae-large-camera-motion")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForVideoClassification processor = AutoImageProcessor.from_pretrained("ai-forever/kandinsky-videomae-large-camera-motion") model = AutoModelForVideoClassification.from_pretrained("ai-forever/kandinsky-videomae-large-camera-motion", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from ai-forever/kandinsky-videomae-large-camera-motion: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/ai-forever/kandinsky-videomae-large-camera-motion/resolve/main/config.json
- Command line
-
hf download hf://ai-forever/kandinsky-videomae-large-camera-motion/config.json
-
curl -L -o config.json https://huggingface.co/ai-forever/kandinsky-videomae-large-camera-motion/resolve/main/config.json
1.74 kB
| { | |
| "_name_or_path": "MCG-NJU/videomae-large", | |
| "architectures": [ | |
| "VideoMAEForVideoClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "decoder_hidden_size": 512, | |
| "decoder_intermediate_size": 2048, | |
| "decoder_num_attention_heads": 8, | |
| "decoder_num_hidden_layers": 12, | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.0, | |
| "hidden_size": 1024, | |
| "id2label": { | |
| "0": "arc_left", | |
| "1": "arc_right", | |
| "2": "dolly_in", | |
| "3": "dolly_out", | |
| "4": "pan_left", | |
| "5": "pan_right", | |
| "6": "pedestal_down", | |
| "7": "pedestal_up", | |
| "8": "pov", | |
| "9": "roll_left", | |
| "10": "roll_right", | |
| "11": "shake", | |
| "12": "static", | |
| "13": "tilt_down", | |
| "14": "tilt_up", | |
| "15": "track", | |
| "16": "truck_left", | |
| "17": "truck_right", | |
| "18": "undefined", | |
| "19": "zoom_in", | |
| "20": "zoom_out" | |
| }, | |
| "image_size": 224, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4096, | |
| "label2id": { | |
| "arc_left": 0, | |
| "arc_right": 1, | |
| "dolly_in": 2, | |
| "dolly_out": 3, | |
| "pan_left": 4, | |
| "pan_right": 5, | |
| "pedestal_down": 6, | |
| "pedestal_up": 7, | |
| "pov": 8, | |
| "roll_left": 9, | |
| "roll_right": 10, | |
| "shake": 11, | |
| "static": 12, | |
| "tilt_down": 13, | |
| "tilt_up": 14, | |
| "track": 15, | |
| "truck_left": 16, | |
| "truck_right": 17, | |
| "undefined": 18, | |
| "zoom_in": 19, | |
| "zoom_out": 20 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "model_type": "videomae", | |
| "norm_pix_loss": true, | |
| "num_attention_heads": 16, | |
| "num_channels": 3, | |
| "num_frames": 16, | |
| "num_hidden_layers": 24, | |
| "patch_size": 16, | |
| "problem_type": "multi_label_classification", | |
| "qkv_bias": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.48.3", | |
| "tubelet_size": 2, | |
| "use_mean_pooling": false | |
| } | |