Instructions to use impira/layoutlm-invoices with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use impira/layoutlm-invoices with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("document-question-answering", model="impira/layoutlm-invoices")# Load model directly from transformers import AutoTokenizer, AutoModelForDocumentQuestionAnswering tokenizer = AutoTokenizer.from_pretrained("impira/layoutlm-invoices") model = AutoModelForDocumentQuestionAnswering.from_pretrained("impira/layoutlm-invoices") - Notebooks
- Google Colab
- Kaggle
Ankur Goyal commited on
Commit ·
7234eee
1
Parent(s): 9d33a03
Fix model-type name
Browse files- config.json +1 -1
config.json
CHANGED
|
@@ -16,7 +16,7 @@
|
|
| 16 |
"layer_norm_eps": 1e-05,
|
| 17 |
"max_2d_position_embeddings": 1024,
|
| 18 |
"max_position_embeddings": 514,
|
| 19 |
-
"model_type": "layoutlm-
|
| 20 |
"num_attention_heads": 12,
|
| 21 |
"num_hidden_layers": 12,
|
| 22 |
"pad_token_id": 1,
|
|
|
|
| 16 |
"layer_norm_eps": 1e-05,
|
| 17 |
"max_2d_position_embeddings": 1024,
|
| 18 |
"max_position_embeddings": 514,
|
| 19 |
+
"model_type": "layoutlm-tc",
|
| 20 |
"num_attention_heads": 12,
|
| 21 |
"num_hidden_layers": 12,
|
| 22 |
"pad_token_id": 1,
|