Instructions to use microsoft/layoutlmv3-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/layoutlmv3-base with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("microsoft/layoutlmv3-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from microsoft/layoutlmv3-base: direct link, hf CLI and curl.
- Browser
- Download file 275 Bytes
-
https://huggingface.co/microsoft/layoutlmv3-base/resolve/main/preprocessor_config.json
- Command line
-
hf download hf://microsoft/layoutlmv3-base/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/microsoft/layoutlmv3-base/resolve/main/preprocessor_config.json
275 Bytes
| { | |
| "apply_ocr": true, | |
| "do_normalize": true, | |
| "do_resize": true, | |
| "feature_extractor_type": "LayoutLMv3FeatureExtractor", | |
| "image_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "image_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "ocr_lang": null, | |
| "resample": 2, | |
| "size": 224 | |
| } |