Instructions to use juletxara/vilt-vsr-random with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use juletxara/vilt-vsr-random with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, ViltForImagesAndTextClassification processor = AutoProcessor.from_pretrained("juletxara/vilt-vsr-random") model = ViltForImagesAndTextClassification.from_pretrained("juletxara/vilt-vsr-random", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from juletxara/vilt-vsr-random: direct link, hf CLI and curl.
- Browser
- Download file 289 Bytes
-
https://huggingface.co/juletxara/vilt-vsr-random/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://juletxara/vilt-vsr-random/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/juletxara/vilt-vsr-random/resolve/main/preprocessor_config.json
289 Bytes
| { | |
| "do_normalize": true, | |
| "do_resize": true, | |
| "feature_extractor_type": "ViltFeatureExtractor", | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "processor_class": "ViltProcessor", | |
| "resample": 3, | |
| "size": 384, | |
| "size_divisor": 32 | |
| } | |