Instructions to use aglaia-models/surya-ocr-2-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use aglaia-models/surya-ocr-2-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download aglaia-models/surya-ocr-2-mlx --local-dir surya-ocr-2-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download preprocessor_config.json from aglaia-models/surya-ocr-2-mlx: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/aglaia-models/surya-ocr-2-mlx/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://aglaia-models/surya-ocr-2-mlx/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/aglaia-models/surya-ocr-2-mlx/resolve/main/preprocessor_config.json
482 Bytes
| { | |
| "data_format": "channels_first", | |
| "do_convert_rgb": true, | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_processor_type": "Qwen2VLImageProcessorFast", | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "merge_size": 2, | |
| "patch_size": 16, | |
| "resample": 3, | |
| "rescale_factor": 0.00392156862745098, | |
| "size": { | |
| "longest_edge": 16777216, | |
| "shortest_edge": 65536 | |
| }, | |
| "temporal_patch_size": 2 | |
| } | |