Saed2023 commited on
Commit
f7c1162
1 Parent(s): e450e1e

layoutlmv3-finetuned-cord_100

Browse files
config.json CHANGED
@@ -1,55 +1,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
  }
 
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
  }
preprocessor_config.json CHANGED
@@ -3,12 +3,13 @@
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,
 
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,
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2dc3017053e1701bdef5c23fbd4cbb125500f5a810e4ff1cc597d86818449b48
3
- size 520833489
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:afdfee9974dc9d94b3fa25097fc3cfedf1eea49e5d48d8dbad948c96a96c3270
3
+ size 501407785
runs/Jun01_11-05-16_835a061383a4/1685617643.760327/events.out.tfevents.1685617643.835a061383a4.310.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1792232163defbd1359b55b354327a6a6c96fff44c4defbc68ed604a5eafd577
3
+ size 5975
runs/Jun01_11-05-16_835a061383a4/events.out.tfevents.1685617643.835a061383a4.310.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c505827b195f59cd0a0ed17660c3eb37d01f71f080e6662251dc59a94e40c093
3
+ size 6065
tokenizer_config.json CHANGED
@@ -1,5 +1,6 @@
1
  {
2
  "add_prefix_space": true,
 
3
  "bos_token": {
4
  "__type": "AddedToken",
5
  "content": "<s>",
 
1
  {
2
  "add_prefix_space": true,
3
+ "apply_ocr": false,
4
  "bos_token": {
5
  "__type": "AddedToken",
6
  "content": "<s>",
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9dac17cf3a6da5bca0afce013bac8695960cf83f0297f093637e39e7fe4fc111
3
  size 3643
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3299805266bf4ff6412cd83738930f92a4877d4f8ae39e87a94015947f92b4fb
3
  size 3643