Instructions to use rrrr66254/TimeSformer-Ultrasound5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rrrr66254/TimeSformer-Ultrasound5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("video-classification", model="rrrr66254/TimeSformer-Ultrasound5")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForVideoClassification processor = AutoImageProcessor.from_pretrained("rrrr66254/TimeSformer-Ultrasound5") model = AutoModelForVideoClassification.from_pretrained("rrrr66254/TimeSformer-Ultrasound5", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from rrrr66254/TimeSformer-Ultrasound5: direct link, hf CLI and curl.
- Browser
- Download file 412 Bytes
-
https://huggingface.co/rrrr66254/TimeSformer-Ultrasound5/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://rrrr66254/TimeSformer-Ultrasound5/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/rrrr66254/TimeSformer-Ultrasound5/resolve/main/preprocessor_config.json
412 Bytes
| { | |
| "crop_size": { | |
| "height": 224, | |
| "width": 224 | |
| }, | |
| "do_center_crop": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.45, | |
| 0.45, | |
| 0.45 | |
| ], | |
| "image_processor_type": "VideoMAEImageProcessor", | |
| "image_std": [ | |
| 0.225, | |
| 0.225, | |
| 0.225 | |
| ], | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "shortest_edge": 224 | |
| } | |
| } | |