Saed2023 commited on
Commit
f9b4a38
1 Parent(s): 9292838

layoutlmv3-finetuned-cord_100

Browse files
config.json CHANGED
@@ -1,58 +1,55 @@
1
  {
2
- "_name_or_path": "microsoft/layoutlmv3-base",
3
  "architectures": [
4
- "LayoutLMv3ForTokenClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "bos_token_id": 0,
 
8
  "classifier_dropout": null,
9
- "coordinate_size": 128,
10
  "eos_token_id": 2,
11
- "has_relative_attention_bias": true,
12
- "has_spatial_attention_bias": true,
13
  "hidden_act": "gelu",
14
  "hidden_dropout_prob": 0.1,
15
  "hidden_size": 768,
16
  "id2label": {
17
- "0": "other",
18
- "1": "Bill Date",
19
- "2": "Amount Due",
20
- "3": "Account Number",
21
- "4": "Customer Name",
22
- "5": "Due Date",
23
- "6": "Amount Due With Penalty"
 
 
 
 
24
  },
25
  "initializer_range": 0.02,
26
- "input_size": 224,
27
  "intermediate_size": 3072,
28
  "label2id": {
29
- "Account Number": 3,
30
- "Amount Due": 2,
31
- "Amount Due With Penalty": 6,
32
- "Bill Date": 1,
33
- "Customer Name": 4,
34
- "Due Date": 5,
35
- "other": 0
 
 
 
 
36
  },
37
  "layer_norm_eps": 1e-05,
38
  "max_2d_position_embeddings": 1024,
39
  "max_position_embeddings": 514,
40
- "max_rel_2d_pos": 256,
41
- "max_rel_pos": 128,
42
- "model_type": "layoutlmv3",
43
  "num_attention_heads": 12,
44
- "num_channels": 3,
45
  "num_hidden_layers": 12,
46
  "pad_token_id": 1,
47
- "patch_size": 16,
48
- "rel_2d_pos_bins": 64,
49
- "rel_pos_bins": 32,
50
- "second_input_size": 112,
51
- "shape_size": 128,
52
- "text_embed": true,
53
  "torch_dtype": "float32",
54
- "transformers_version": "4.29.2",
55
  "type_vocab_size": 1,
56
- "visual_embed": true,
57
  "vocab_size": 50265
58
  }
 
1
  {
2
+ "_name_or_path": "/content/drive/MyDrive/!Finetuning LiLT Model /LiLTmodel",
3
  "architectures": [
4
+ "LiltForTokenClassification"
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "bos_token_id": 0,
8
+ "channel_shrink_ratio": 4,
9
  "classifier_dropout": null,
 
10
  "eos_token_id": 2,
 
 
11
  "hidden_act": "gelu",
12
  "hidden_dropout_prob": 0.1,
13
  "hidden_size": 768,
14
  "id2label": {
15
+ "0": "S-INVOICE DATE",
16
+ "1": "S-BALANCE",
17
+ "2": "E-OTHERS",
18
+ "3": "S-OTHERS",
19
+ "4": "E-INVOICE DATE",
20
+ "5": "B-OTHERS",
21
+ "6": "B-INVOICE DATE",
22
+ "7": "S-INVOCE NO",
23
+ "8": "O",
24
+ "9": "I-INVOICE DATE",
25
+ "10": "I-OTHERS"
26
  },
27
  "initializer_range": 0.02,
 
28
  "intermediate_size": 3072,
29
  "label2id": {
30
+ "B-INVOICE DATE": 6,
31
+ "B-OTHERS": 5,
32
+ "E-INVOICE DATE": 4,
33
+ "E-OTHERS": 2,
34
+ "I-INVOICE DATE": 9,
35
+ "I-OTHERS": 10,
36
+ "O": 8,
37
+ "S-BALANCE": 1,
38
+ "S-INVOCE NO": 7,
39
+ "S-INVOICE DATE": 0,
40
+ "S-OTHERS": 3
41
  },
42
  "layer_norm_eps": 1e-05,
43
  "max_2d_position_embeddings": 1024,
44
  "max_position_embeddings": 514,
45
+ "model_type": "lilt",
 
 
46
  "num_attention_heads": 12,
 
47
  "num_hidden_layers": 12,
48
  "pad_token_id": 1,
49
+ "position_embedding_type": "absolute",
 
 
 
 
 
50
  "torch_dtype": "float32",
51
+ "transformers_version": "4.28.0",
52
  "type_vocab_size": 1,
53
+ "use_cache": true,
54
  "vocab_size": 50265
55
  }
preprocessor_config.json CHANGED
@@ -3,13 +3,12 @@
3
  "do_normalize": true,
4
  "do_rescale": true,
5
  "do_resize": true,
6
- "feature_extractor_type": "LayoutLMv3FeatureExtractor",
7
  "image_mean": [
8
  0.5,
9
  0.5,
10
  0.5
11
  ],
12
- "image_processor_type": "LayoutLMv3ImageProcessor",
13
  "image_std": [
14
  0.5,
15
  0.5,
 
3
  "do_normalize": true,
4
  "do_rescale": true,
5
  "do_resize": true,
 
6
  "image_mean": [
7
  0.5,
8
  0.5,
9
  0.5
10
  ],
11
+ "image_processor_type": "LayoutLMv3FeatureExtractor",
12
  "image_std": [
13
  0.5,
14
  0.5,
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:34d6f0dca8f754329023c697acd52dd02838c874247787ac60a22518e3c964ae
3
- size 501407785
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2dc3017053e1701bdef5c23fbd4cbb125500f5a810e4ff1cc597d86818449b48
3
+ size 520833489
runs/Jun01_10-48-22_846b0d6ee475/1685616617.2132206/events.out.tfevents.1685616617.846b0d6ee475.2409.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d9d6f5775eee0bc37e41211458c30567a9345572b6191fe20b8d039bb191010
3
+ size 5975
runs/Jun01_10-48-22_846b0d6ee475/1685616712.8031805/events.out.tfevents.1685616712.846b0d6ee475.2409.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:457cb60f07475772898b930f7ee650a30c503810564a490ac4e8c50bd0061fb5
3
+ size 5975
runs/Jun01_10-48-22_846b0d6ee475/events.out.tfevents.1685616617.846b0d6ee475.2409.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74a3b1da8f0bad33d772a0f9017d4b2b43397d091239ebf7ecb5835bedd0728e
3
+ size 10714
runs/Jun01_10-48-22_846b0d6ee475/events.out.tfevents.1685616768.846b0d6ee475.2409.3 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f553d197ec50f7127027ec85fed8469e6268cd781f94bf76d75277c5a979561c
3
+ size 551
tokenizer_config.json CHANGED
@@ -1,6 +1,5 @@
1
  {
2
  "add_prefix_space": true,
3
- "apply_ocr": false,
4
  "bos_token": {
5
  "__type": "AddedToken",
6
  "content": "<s>",
 
1
  {
2
  "add_prefix_space": true,
 
3
  "bos_token": {
4
  "__type": "AddedToken",
5
  "content": "<s>",
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d6fe3fbefb8f03d3df4a1e45a76cd3d6f88660a23449cc604660a100a3df36e2
3
  size 3643
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9dac17cf3a6da5bca0afce013bac8695960cf83f0297f093637e39e7fe4fc111
3
  size 3643