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');
| { | |
| "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 | |
| } | |
| } | |