Instructions to use LemOneLabs/FastVLM-0.5B-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use LemOneLabs/FastVLM-0.5B-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-text-to-text', 'LemOneLabs/FastVLM-0.5B-ONNX');
Download preprocessor_config.json from LemOneLabs/FastVLM-0.5B-ONNX: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/LemOneLabs/FastVLM-0.5B-ONNX/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://LemOneLabs/FastVLM-0.5B-ONNX/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/LemOneLabs/FastVLM-0.5B-ONNX/resolve/main/preprocessor_config.json
466 Bytes
| { | |
| "crop_size": { | |
| "height": 1024, | |
| "width": 1024 | |
| }, | |
| "do_center_crop": true, | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.0, | |
| 0.0, | |
| 0.0 | |
| ], | |
| "image_processor_type": "CLIPImageProcessor", | |
| "image_std": [ | |
| 1.0, | |
| 1.0, | |
| 1.0 | |
| ], | |
| "processor_class": "LlavaProcessor", | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "shortest_edge": 1024 | |
| } | |
| } |