Image Classification
timm
Safetensors
glam
ocr
historical-documents
page-classification
blank-page-detection
multi-label
document-ai
digitised-books
Instructions to use small-models-for-glam/page-ocr-flags with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- timm
How to use small-models-for-glam/page-ocr-flags with timm:
import timm model = timm.create_model("hf-hub:small-models-for-glam/page-ocr-flags", pretrained=True) - Notebooks
- Google Colab
- Kaggle
davanstrien HF Staff
Model weights (MobileNetV4-conv-small, seed 1) and timm config
72c7e1b verified Download config.json from small-models-for-glam/page-ocr-flags: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/small-models-for-glam/page-ocr-flags/resolve/main/config.json
- Command line
-
hf download hf://small-models-for-glam/page-ocr-flags/config.json
-
curl -L -o config.json https://huggingface.co/small-models-for-glam/page-ocr-flags/resolve/main/config.json
1.06 kB
| { | |
| "architecture": "mobilenetv4_conv_small", | |
| "num_classes": 7, | |
| "num_features": 960, | |
| "global_pool": "avg", | |
| "label_names": [ | |
| "no_text", | |
| "lo_blank_write", | |
| "lo_trunc", | |
| "lo_loop", | |
| "faint", | |
| "table", | |
| "dense" | |
| ], | |
| "model_args": { | |
| "num_classes": 7, | |
| "in_chans": 3, | |
| "global_pool": "avg" | |
| }, | |
| "pretrained_cfg": { | |
| "custom_load": false, | |
| "input_size": [ | |
| 3, | |
| 384, | |
| 384 | |
| ], | |
| "test_input_size": [ | |
| 3, | |
| 384, | |
| 384 | |
| ], | |
| "fixed_input_size": false, | |
| "interpolation": "bilinear", | |
| "crop_pct": 1.0, | |
| "test_crop_pct": 0.95, | |
| "crop_mode": "squash", | |
| "mean": [ | |
| 0.485, | |
| 0.456, | |
| 0.406 | |
| ], | |
| "std": [ | |
| 0.229, | |
| 0.224, | |
| 0.225 | |
| ], | |
| "num_classes": 7, | |
| "pool_size": [ | |
| 7, | |
| 7 | |
| ], | |
| "first_conv": "conv_stem", | |
| "classifier": "classifier", | |
| "license": "apache-2.0", | |
| "label_names": [ | |
| "no_text", | |
| "lo_blank_write", | |
| "lo_trunc", | |
| "lo_loop", | |
| "faint", | |
| "table", | |
| "dense" | |
| ] | |
| } | |
| } |