Image-to-Text
MLX
Safetensors
mlx-weights
paddlepaddle-ocr
ppocrv5
ppocrv6
ppdoclayoutv3
pp-structure
apple-silicon
Instructions to use plaincompute/ppocr-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use plaincompute/ppocr-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download plaincompute/ppocr-mlx --local-dir ppocr-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download table_cls/preprocessor_config.json from plaincompute/ppocr-mlx: direct link, hf CLI and curl.
- Browser
- Download file 749 Bytes
-
https://huggingface.co/plaincompute/ppocr-mlx/resolve/main/table_cls/preprocessor_config.json
- Command line
-
hf download hf://plaincompute/ppocr-mlx/table_cls/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/plaincompute/ppocr-mlx/resolve/main/table_cls/preprocessor_config.json
749 Bytes
| { | |
| "_valid_processor_keys": [ | |
| "images", | |
| "do_resize", | |
| "size", | |
| "resample", | |
| "do_rescale", | |
| "rescale_factor", | |
| "do_normalize", | |
| "image_mean", | |
| "image_std", | |
| "return_tensors", | |
| "data_format", | |
| "input_data_format" | |
| ], | |
| "do_normalize": true, | |
| "do_rescale": true, | |
| "do_resize": true, | |
| "do_center_crop": true, | |
| "image_processor_type": "PPLCNetImageProcessor", | |
| "model_input_names": ["pixel_values", "original_image_size"], | |
| "image_mode": "BGR", | |
| "channel_first": false, | |
| "crop_size": 224, | |
| "resize_short": 256, | |
| "image_mean": [0.406, 0.456, 0.485], | |
| "image_std": [0.225, 0.224, 0.229], | |
| "rescale_factor": 0.00392156862745098, | |
| "resample": 2, | |
| "keep_keys": ["image", "shape", "polys", "ignore_tags"] | |
| } |