cor-c commited on
Commit
cc273b1
1 Parent(s): da7b806

Training in progress epoch 0

Browse files
Files changed (3) hide show
  1. README.md +11 -18
  2. config.json +28 -46
  3. tf_model.h5 +2 -2
README.md CHANGED
@@ -1,27 +1,27 @@
1
  ---
2
  license: mit
 
3
  tags:
4
  - generated_from_keras_callback
5
- base_model: microsoft/layoutlm-base-uncased
6
  model-index:
7
- - name: layoutlm-cord-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
- # layoutlm-cord-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: 0.0379
19
- - Validation Loss: 0.1673
20
- - Train Overall Precision: 0.9428
21
- - Train Overall Recall: 0.9528
22
- - Train Overall F1: 0.9478
23
- - Train Overall Accuracy: 0.9605
24
- - Epoch: 7
25
 
26
  ## Model description
27
 
@@ -47,14 +47,7 @@ The following hyperparameters were used during training:
47
 
48
  | Train Loss | Validation Loss | Train Overall Precision | Train Overall Recall | Train Overall F1 | Train Overall Accuracy | Epoch |
49
  |:----------:|:---------------:|:-----------------------:|:--------------------:|:----------------:|:----------------------:|:-----:|
50
- | 1.2812 | 0.5563 | 0.8209 | 0.8265 | 0.8237 | 0.8574 | 0 |
51
- | 0.3842 | 0.2602 | 0.9121 | 0.9155 | 0.9138 | 0.9406 | 1 |
52
- | 0.2075 | 0.2085 | 0.9257 | 0.9201 | 0.9229 | 0.9453 | 2 |
53
- | 0.1377 | 0.1793 | 0.9368 | 0.9368 | 0.9368 | 0.9555 | 3 |
54
- | 0.0889 | 0.1902 | 0.9282 | 0.9346 | 0.9314 | 0.9525 | 4 |
55
- | 0.0747 | 0.1610 | 0.9455 | 0.9513 | 0.9484 | 0.9648 | 5 |
56
- | 0.0514 | 0.1796 | 0.9480 | 0.9566 | 0.9523 | 0.9639 | 6 |
57
- | 0.0379 | 0.1673 | 0.9428 | 0.9528 | 0.9478 | 0.9605 | 7 |
58
 
59
 
60
  ### Framework versions
 
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-cord-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-cord-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.3801
19
+ - Validation Loss: 2.0295
20
+ - Train Overall Precision: 0.0036
21
+ - Train Overall Recall: 0.0025
22
+ - Train Overall F1: 0.0030
23
+ - Train Overall Accuracy: 0.3419
24
+ - Epoch: 0
25
 
26
  ## Model description
27
 
 
47
 
48
  | Train Loss | Validation Loss | Train Overall Precision | Train Overall Recall | Train Overall F1 | Train Overall Accuracy | Epoch |
49
  |:----------:|:---------------:|:-----------------------:|:--------------------:|:----------------:|:----------------------:|:-----:|
50
+ | 2.3801 | 2.0295 | 0.0036 | 0.0025 | 0.0030 | 0.3419 | 0 |
 
 
 
 
 
 
 
51
 
52
 
53
  ### Framework versions
config.json CHANGED
@@ -8,56 +8,38 @@
8
  "hidden_dropout_prob": 0.1,
9
  "hidden_size": 768,
10
  "id2label": {
11
- "0": "O",
12
- "1": "I-menu.cnt",
13
- "2": "I-menu.discountprice",
14
- "3": "I-menu.nm",
15
- "4": "I-menu.num",
16
- "5": "I-menu.price",
17
- "6": "I-menu.sub_cnt",
18
- "7": "I-menu.sub_nm",
19
- "8": "I-menu.sub_price",
20
- "9": "I-menu.unitprice",
21
- "10": "I-sub_total.discount_price",
22
- "11": "I-sub_total.etc",
23
- "12": "I-sub_total.service_price",
24
- "13": "I-sub_total.subtotal_price",
25
- "14": "I-sub_total.tax_price",
26
- "15": "I-total.cashprice",
27
- "16": "I-total.changeprice",
28
- "17": "I-total.creditcardprice",
29
- "18": "I-total.emoneyprice",
30
- "19": "I-total.menuqty_cnt",
31
- "20": "I-total.menutype_cnt",
32
- "21": "I-total.total_etc",
33
- "22": "I-total.total_price"
34
  },
35
  "initializer_range": 0.02,
36
  "intermediate_size": 3072,
37
  "label2id": {
38
- "I-menu.cnt": 1,
39
- "I-menu.discountprice": 2,
40
- "I-menu.nm": 3,
41
- "I-menu.num": 4,
42
- "I-menu.price": 5,
43
- "I-menu.sub_cnt": 6,
44
- "I-menu.sub_nm": 7,
45
- "I-menu.sub_price": 8,
46
- "I-menu.unitprice": 9,
47
- "I-sub_total.discount_price": 10,
48
- "I-sub_total.etc": 11,
49
- "I-sub_total.service_price": 12,
50
- "I-sub_total.subtotal_price": 13,
51
- "I-sub_total.tax_price": 14,
52
- "I-total.cashprice": 15,
53
- "I-total.changeprice": 16,
54
- "I-total.creditcardprice": 17,
55
- "I-total.emoneyprice": 18,
56
- "I-total.menuqty_cnt": 19,
57
- "I-total.menutype_cnt": 20,
58
- "I-total.total_etc": 21,
59
- "I-total.total_price": 22,
60
- "O": 0
61
  },
62
  "layer_norm_eps": 1e-12,
63
  "max_2d_position_embeddings": 1024,
 
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,
tf_model.h5 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:92f9a0c707e792528248ebdd551a4ac0ca1a4f21e09947f5d8ca0d47591b52ff
3
- size 450878408
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d784007aeb3ab2f7cf44e495565d883829b2bc92f9386c63ec25a1a6e2e6db56
3
+ size 450850760