Instructions to use Xenova/mobilevit-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/mobilevit-small with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-classification', 'Xenova/mobilevit-small');
Download preprocessor_config.json from Xenova/mobilevit-small: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/Xenova/mobilevit-small/resolve/refs%2Fpr%2F2/preprocessor_config.json
- Command line
-
hf download hf://Xenova/mobilevit-small@refs/pr/2/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/Xenova/mobilevit-small/resolve/refs%2Fpr%2F2/preprocessor_config.json
403 Bytes
| { | |
| "crop_size": { | |
| "height": 256, | |
| "width": 256 | |
| }, | |
| "do_center_crop": true, | |
| "do_flip_channel_order": true, | |
| "do_flip_channels": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "feature_extractor_type": "MobileViTFeatureExtractor", | |
| "image_processor_type": "MobileViTFeatureExtractor", | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "shortest_edge": 288 | |
| } | |
| } | |