Instructions to use microsoft/layoutxlm-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use microsoft/layoutxlm-base with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("microsoft/layoutxlm-base", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Replacing `LayoutLMv2FeatureExtractor` by `LayoutXLMProcessor` in `preprocessor_config.json`
Browse files- preprocessor_config.json +1 -1
preprocessor_config.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"apply_ocr": true,
|
| 3 |
"do_resize": true,
|
| 4 |
-
"feature_extractor_type": "
|
| 5 |
"resample": 2,
|
| 6 |
"size": 224
|
| 7 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"apply_ocr": true,
|
| 3 |
"do_resize": true,
|
| 4 |
+
"feature_extractor_type": "LayoutXLMProcessor",
|
| 5 |
"resample": 2,
|
| 6 |
"size": 224
|
| 7 |
}
|