Instructions to use Xenova/mobilevit-small-variants with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Xenova/mobilevit-small-variants with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-classification', 'Xenova/mobilevit-small-variants');
Download preprocessor_config.json from Xenova/mobilevit-small-variants: direct link, hf CLI and curl.
- Browser
- Download file 346 Bytes
-
https://huggingface.co/Xenova/mobilevit-small-variants/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://Xenova/mobilevit-small-variants/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/Xenova/mobilevit-small-variants/resolve/main/preprocessor_config.json
346 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, | |
| "image_processor_type": "MobileViTFeatureExtractor", | |
| "resample": 2, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "shortest_edge": 288 | |
| } | |
| } | |