Training in progress epoch 0
Browse files- README.md +58 -0
- config.json +57 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
base_model: microsoft/layoutlm-base-uncased
|
4 |
+
tags:
|
5 |
+
- generated_from_keras_callback
|
6 |
+
model-index:
|
7 |
+
- name: cor-c/layoutlm-invoice-tf
|
8 |
+
results: []
|
9 |
+
---
|
10 |
+
|
11 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
12 |
+
probably proofread and complete it, then remove this comment. -->
|
13 |
+
|
14 |
+
# cor-c/layoutlm-invoice-tf
|
15 |
+
|
16 |
+
This model is a fine-tuned version of [microsoft/layoutlm-base-uncased](https://huggingface.co/microsoft/layoutlm-base-uncased) on an unknown dataset.
|
17 |
+
It achieves the following results on the evaluation set:
|
18 |
+
- Train Loss: 2.3852
|
19 |
+
- Validation Loss: 2.0674
|
20 |
+
- Train Overall Precision: 0.0
|
21 |
+
- Train Overall Recall: 0.0
|
22 |
+
- Train Overall F1: 0.0
|
23 |
+
- Train Overall Accuracy: 0.2968
|
24 |
+
- Epoch: 0
|
25 |
+
|
26 |
+
## Model description
|
27 |
+
|
28 |
+
More information needed
|
29 |
+
|
30 |
+
## Intended uses & limitations
|
31 |
+
|
32 |
+
More information needed
|
33 |
+
|
34 |
+
## Training and evaluation data
|
35 |
+
|
36 |
+
More information needed
|
37 |
+
|
38 |
+
## Training procedure
|
39 |
+
|
40 |
+
### Training hyperparameters
|
41 |
+
|
42 |
+
The following hyperparameters were used during training:
|
43 |
+
- optimizer: {'name': 'AdamWeightDecay', 'learning_rate': 3e-05, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False, 'weight_decay_rate': 0.01}
|
44 |
+
- training_precision: mixed_float16
|
45 |
+
|
46 |
+
### Training results
|
47 |
+
|
48 |
+
| Train Loss | Validation Loss | Train Overall Precision | Train Overall Recall | Train Overall F1 | Train Overall Accuracy | Epoch |
|
49 |
+
|:----------:|:---------------:|:-----------------------:|:--------------------:|:----------------:|:----------------------:|:-----:|
|
50 |
+
| 2.3852 | 2.0674 | 0.0 | 0.0 | 0.0 | 0.2968 | 0 |
|
51 |
+
|
52 |
+
|
53 |
+
### Framework versions
|
54 |
+
|
55 |
+
- Transformers 4.41.0.dev0
|
56 |
+
- TensorFlow 2.16.1
|
57 |
+
- Datasets 2.19.1
|
58 |
+
- Tokenizers 0.19.1
|
config.json
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/layoutlm-base-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"LayoutLMForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"hidden_act": "gelu",
|
8 |
+
"hidden_dropout_prob": 0.1,
|
9 |
+
"hidden_size": 768,
|
10 |
+
"id2label": {
|
11 |
+
"0": "document.type",
|
12 |
+
"1": "date.invoice",
|
13 |
+
"2": "number.invoice",
|
14 |
+
"3": "duedate.invoice",
|
15 |
+
"4": "goods.info",
|
16 |
+
"5": "total.total",
|
17 |
+
"6": "discount.total",
|
18 |
+
"7": "net.total",
|
19 |
+
"8": "vat.total",
|
20 |
+
"9": "other",
|
21 |
+
"10": "name.supplier",
|
22 |
+
"11": "info.supplier",
|
23 |
+
"12": "name.client",
|
24 |
+
"13": "info.client"
|
25 |
+
},
|
26 |
+
"initializer_range": 0.02,
|
27 |
+
"intermediate_size": 3072,
|
28 |
+
"label2id": {
|
29 |
+
"date.invoice": 1,
|
30 |
+
"discount.total": 6,
|
31 |
+
"document.type": 0,
|
32 |
+
"duedate.invoice": 3,
|
33 |
+
"goods.info": 4,
|
34 |
+
"info.client": 13,
|
35 |
+
"info.supplier": 11,
|
36 |
+
"name.client": 12,
|
37 |
+
"name.supplier": 10,
|
38 |
+
"net.total": 7,
|
39 |
+
"number.invoice": 2,
|
40 |
+
"other": 9,
|
41 |
+
"total.total": 5,
|
42 |
+
"vat.total": 8
|
43 |
+
},
|
44 |
+
"layer_norm_eps": 1e-12,
|
45 |
+
"max_2d_position_embeddings": 1024,
|
46 |
+
"max_position_embeddings": 512,
|
47 |
+
"model_type": "layoutlm",
|
48 |
+
"num_attention_heads": 12,
|
49 |
+
"num_hidden_layers": 12,
|
50 |
+
"output_past": true,
|
51 |
+
"pad_token_id": 0,
|
52 |
+
"position_embedding_type": "absolute",
|
53 |
+
"transformers_version": "4.41.0.dev0",
|
54 |
+
"type_vocab_size": 2,
|
55 |
+
"use_cache": true,
|
56 |
+
"vocab_size": 30522
|
57 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cf1f5272411a159c5cbbade781b7d5c08a9eb6ff165f2c9c29cd60cc501cdc1f
|
3 |
+
size 450850760
|