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] huggingface-cli download --local-dir ppocr-mlx plaincompute/ppocr-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
File size: 1,364 Bytes
1e1b9bd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | {
"model_type": "pp_formulanet",
"text_config": {
"activation_dropout": 0.0,
"activation_function": "gelu",
"attention_dropout": 0.0,
"bos_token_id": 0,
"d_model": 512,
"decoder_attention_heads": 16,
"decoder_ffn_dim": 2048,
"decoder_layerdrop": 0.0,
"decoder_layers": 8,
"dropout": 0.1,
"encoder_attention_heads": 16,
"encoder_layers": 12,
"eos_token_id": 2,
"forced_eos_token_id": 2,
"init_std": 0.02,
"max_position_embeddings": 2560,
"num_hidden_layers": 12,
"pad_token_id": 1,
"scale_embedding": true,
"tie_word_embeddings": false,
"vocab_size": 50000
},
"vision_config": {
"image_size": 768,
"output_channels":256,
"num_channels":3,
"patch_size":16,
"hidden_act":"gelu",
"layer_norm_eps":1e-6,
"attention_dropout":0.0,
"qkv_bias":true,
"use_abs_pos":true,
"use_rel_pos":true,
"window_size":14,
"hidden_size": 768,
"num_hidden_layers": 12,
"num_attention_heads": 12,
"global_attn_indexes": [2, 5, 8, 11],
"mlp_dim": 3072,
"post_conv_in_channels": 256,
"post_conv_mid_channels": 512,
"post_conv_out_channels": 1024
}
} |