Instructions to use microsoft/layoutlmv2-base-uncased with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/layoutlmv2-base-uncased with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("microsoft/layoutlmv2-base-uncased", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download preprocessor_config.json from microsoft/layoutlmv2-base-uncased: direct link, hf CLI and curl.
- Browser
- Download file 135 Bytes
-
https://huggingface.co/microsoft/layoutlmv2-base-uncased/resolve/refs%2Fpr%2F1/preprocessor_config.json
- Command line
-
hf download hf://microsoft/layoutlmv2-base-uncased@refs/pr/1/preprocessor_config.json
-
curl -L -o preprocessor_config.json https://huggingface.co/microsoft/layoutlmv2-base-uncased/resolve/refs%2Fpr%2F1/preprocessor_config.json
135 Bytes
| { | |
| "apply_ocr": true, | |
| "do_resize": true, | |
| "feature_extractor_type": "LayoutLMv2FeatureExtractor", | |
| "resample": 2, | |
| "size": 224 | |
| } | |