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:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("microsoft/layoutlmv2-base-uncased", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Add config file
Browse files- preprocessor_config.json +7 -0
preprocessor_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"apply_ocr": true,
|
| 3 |
+
"do_resize": true,
|
| 4 |
+
"feature_extractor_type": "LayoutLMv2FeatureExtractor",
|
| 5 |
+
"resample": 2,
|
| 6 |
+
"size": 224
|
| 7 |
+
}
|