End of training
Browse files
README.md
CHANGED
@@ -1,54 +1,33 @@
|
|
1 |
---
|
2 |
license: cc-by-nc-sa-4.0
|
|
|
3 |
tags:
|
4 |
- generated_from_trainer
|
5 |
-
base_model: microsoft/layoutxlm-base
|
6 |
datasets:
|
7 |
-
-
|
8 |
-
inference: false
|
9 |
model-index:
|
10 |
- name: layoutxlm-finetuned-xfund-fr
|
11 |
results: []
|
12 |
---
|
13 |
|
14 |
-
|
15 |
-
|
16 |
-
This model is a fine-tuned version of [microsoft/layoutxlm-base](https://huggingface.co/microsoft/layoutxlm-base) on the [XFUND](https://github.com/doc-analysis/XFUND) dataset (French split).
|
17 |
-
|
18 |
-
## Model usage
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
Here's how to use this model:
|
23 |
-
|
24 |
-
```
|
25 |
-
from transformers import AutoProcessor, AutoModelForTokenClassification
|
26 |
-
import torch
|
27 |
-
from PIL import Image
|
28 |
-
|
29 |
-
processor = AutoProcessor.from_pretrained("nielsr/layoutxlm-finetuned-xfund-fr")
|
30 |
-
model = AutoModelForTokenClassification.from_pretrained(nielsr/layoutxlm-finetuned-xfund-fr")
|
31 |
|
32 |
-
|
33 |
-
image = Image.open("...").convert("RGB")
|
34 |
|
35 |
-
|
36 |
-
encoding = processor(image, padding="max_length", max_length=512, truncation=True, return_tensors="pt")
|
37 |
|
38 |
-
|
39 |
-
outputs = model(**encoding)
|
40 |
-
logits = outputs.logits
|
41 |
-
|
42 |
-
predictions = logits.argmax(-1)
|
43 |
-
```
|
44 |
|
45 |
## Intended uses & limitations
|
46 |
|
47 |
-
|
48 |
|
49 |
## Training and evaluation data
|
50 |
|
51 |
-
|
52 |
|
53 |
## Training procedure
|
54 |
|
@@ -70,7 +49,7 @@ The following hyperparameters were used during training:
|
|
70 |
|
71 |
### Framework versions
|
72 |
|
73 |
-
- Transformers 4.
|
74 |
-
- Pytorch
|
75 |
-
- Datasets 2.
|
76 |
-
- Tokenizers 0.
|
|
|
1 |
---
|
2 |
license: cc-by-nc-sa-4.0
|
3 |
+
base_model: microsoft/layoutxlm-base
|
4 |
tags:
|
5 |
- generated_from_trainer
|
|
|
6 |
datasets:
|
7 |
+
- xfun
|
|
|
8 |
model-index:
|
9 |
- name: layoutxlm-finetuned-xfund-fr
|
10 |
results: []
|
11 |
---
|
12 |
|
13 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
14 |
+
should probably proofread and complete it, then remove this comment. -->
|
|
|
|
|
|
|
15 |
|
16 |
+
# layoutxlm-finetuned-xfund-fr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
|
18 |
+
This model is a fine-tuned version of [microsoft/layoutxlm-base](https://huggingface.co/microsoft/layoutxlm-base) on the xfun dataset.
|
|
|
19 |
|
20 |
+
## Model description
|
|
|
21 |
|
22 |
+
More information needed
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
## Intended uses & limitations
|
25 |
|
26 |
+
More information needed
|
27 |
|
28 |
## Training and evaluation data
|
29 |
|
30 |
+
More information needed
|
31 |
|
32 |
## Training procedure
|
33 |
|
|
|
49 |
|
50 |
### Framework versions
|
51 |
|
52 |
+
- Transformers 4.40.2
|
53 |
+
- Pytorch 2.2.1+cu121
|
54 |
+
- Datasets 2.19.1
|
55 |
+
- Tokenizers 0.19.1
|