SkanderSassi commited on
Commit
7942e5e
1 Parent(s): a07ccff

Upload 12 files

Browse files
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "C:\\Users\\Skander\\Desktop\\invoice-recognizer\\model_files",
3
  "architectures": [
4
  "LayoutLMv3ForTokenClassification"
5
  ],
@@ -129,7 +129,7 @@
129
  "shape_size": 128,
130
  "text_embed": true,
131
  "torch_dtype": "float32",
132
- "transformers_version": "4.26.1",
133
  "type_vocab_size": 1,
134
  "visual_embed": true,
135
  "vocab_size": 50265
 
1
  {
2
+ "_name_or_path": "drive/MyDrive/factocr/workingmodel/checkpoint-3000",
3
  "architectures": [
4
  "LayoutLMv3ForTokenClassification"
5
  ],
 
129
  "shape_size": 128,
130
  "text_embed": true,
131
  "torch_dtype": "float32",
132
+ "transformers_version": "4.26.0",
133
  "type_vocab_size": 1,
134
  "visual_embed": true,
135
  "vocab_size": 50265
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3e4f37967aa0ee7e901570813b4ce9339347a76f131732803a2c51106932972e
3
+ size 5010531
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "apply_ocr": false,
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,
16
+ 0.5
17
+ ],
18
+ "ocr_lang": "fr",
19
+ "processor_class": "LayoutLMv3Processor",
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "height": 224,
24
+ "width": 224
25
+ },
26
+ "tesseract_config": ""
27
+ }
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0474b8777d250e5e1a6f4bae7f1262115696297cc499eedfd299e6ac008b32e
3
+ size 14575
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06441e63d02ea2144478d5cb8afaf10bc876231d93acf8ace1749500c4d25330
3
+ size 627
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": true,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": true,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": true,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": true,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "apply_ocr": false,
4
+ "bos_token": {
5
+ "__type": "AddedToken",
6
+ "content": "<s>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "cls_token": {
13
+ "__type": "AddedToken",
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "cls_token_box": [
21
+ 0,
22
+ 0,
23
+ 0,
24
+ 0
25
+ ],
26
+ "eos_token": {
27
+ "__type": "AddedToken",
28
+ "content": "</s>",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ },
34
+ "errors": "replace",
35
+ "mask_token": {
36
+ "__type": "AddedToken",
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": true,
40
+ "rstrip": false,
41
+ "single_word": false
42
+ },
43
+ "model_max_length": 512,
44
+ "name_or_path": "drive/MyDrive/factocr/workingmodel/checkpoint-3000",
45
+ "ocr_lang": "fr",
46
+ "only_label_first_subword": true,
47
+ "pad_token": {
48
+ "__type": "AddedToken",
49
+ "content": "<pad>",
50
+ "lstrip": false,
51
+ "normalized": true,
52
+ "rstrip": false,
53
+ "single_word": false
54
+ },
55
+ "pad_token_box": [
56
+ 0,
57
+ 0,
58
+ 0,
59
+ 0
60
+ ],
61
+ "pad_token_label": -100,
62
+ "processor_class": "LayoutLMv3Processor",
63
+ "sep_token": {
64
+ "__type": "AddedToken",
65
+ "content": "</s>",
66
+ "lstrip": false,
67
+ "normalized": true,
68
+ "rstrip": false,
69
+ "single_word": false
70
+ },
71
+ "sep_token_box": [
72
+ 0,
73
+ 0,
74
+ 0,
75
+ 0
76
+ ],
77
+ "special_tokens_map_file": null,
78
+ "tokenizer_class": "LayoutLMv3Tokenizer",
79
+ "trim_offsets": true,
80
+ "unk_token": {
81
+ "__type": "AddedToken",
82
+ "content": "<unk>",
83
+ "lstrip": false,
84
+ "normalized": true,
85
+ "rstrip": false,
86
+ "single_word": false
87
+ }
88
+ }
trainer_state.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 153.84615384615384,
5
+ "global_step": 2000,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 38.46,
12
+ "learning_rate": 0.00075,
13
+ "loss": 0.1293,
14
+ "step": 500
15
+ },
16
+ {
17
+ "epoch": 76.92,
18
+ "learning_rate": 0.0005,
19
+ "loss": 0.0576,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 115.38,
24
+ "learning_rate": 0.00025,
25
+ "loss": 0.0387,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 153.85,
30
+ "learning_rate": 0.0,
31
+ "loss": 0.0315,
32
+ "step": 2000
33
+ }
34
+ ],
35
+ "max_steps": 2000,
36
+ "num_train_epochs": 154,
37
+ "total_flos": 2083470892210176.0,
38
+ "trial_name": null,
39
+ "trial_params": null
40
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ecb8b4daed4967e80eab325f43ba13cb60f030d1593c590c65e38fe32719bed
3
+ size 3579
vocab.json ADDED
The diff for this file is too large to render. See raw diff