Instructions to use onnx-community/mgp-str-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/mgp-str-base with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('image-to-text', 'onnx-community/mgp-str-base');
Download preprocessor_config.json from onnx-community/mgp-str-base: direct link, hf CLI and curl.
- Browser
- Download file 327 Bytes
-
https://huggingface.co/onnx-community/mgp-str-base/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://onnx-community/mgp-str-base/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/onnx-community/mgp-str-base/resolve/main/preprocessor_config.json
327 Bytes
| { | |
| "do_normalize": false, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_type": "ViTFeatureExtractor", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "height": 32, | |
| "width": 128 | |
| } | |
| } | |