personalizedrefrigerator commited on
Commit
d38471c
·
verified ·
1 Parent(s): 2c44110

End of training

Browse files
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ language:
4
+ - fr
5
+ base_model: microsoft/trocr-small-handwritten
6
+ tags:
7
+ - generated_from_trainer
8
+ metrics:
9
+ - wer
10
+ model-index:
11
+ - name: TrOCR Small (Finetuned on French)
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # TrOCR Small (Finetuned on French)
19
+
20
+ This model is a fine-tuned version of [microsoft/trocr-small-handwritten](https://huggingface.co/microsoft/trocr-small-handwritten) on the None dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.1007
23
+ - Model Preparation Time: 0.0057
24
+ - Cer: 0.0138
25
+ - Wer: 0.0455
26
+ - Ratio: 98.3979
27
+
28
+ ## Model description
29
+
30
+ More information needed
31
+
32
+ ## Intended uses & limitations
33
+
34
+ More information needed
35
+
36
+ ## Training and evaluation data
37
+
38
+ More information needed
39
+
40
+ ## Training procedure
41
+
42
+ ### Training hyperparameters
43
+
44
+ The following hyperparameters were used during training:
45
+ - learning_rate: 1e-05
46
+ - train_batch_size: 8
47
+ - eval_batch_size: 8
48
+ - seed: 42
49
+ - optimizer: Use adamw_torch with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
50
+ - lr_scheduler_type: linear
51
+ - training_steps: 12000
52
+ - mixed_precision_training: Native AMP
53
+
54
+ ### Training results
55
+
56
+ | Training Loss | Epoch | Step | Validation Loss | Model Preparation Time | Cer | Wer | Ratio |
57
+ |:-------------:|:------:|:-----:|:---------------:|:----------------------:|:------:|:------:|:-------:|
58
+ | 0.1386 | 0.0333 | 400 | 0.1543 | 0.0057 | 0.0190 | 0.0819 | 98.6922 |
59
+ | 0.1298 | 0.0667 | 800 | 0.1300 | 0.0057 | 0.0130 | 0.0526 | 98.9649 |
60
+ | 0.1171 | 0.1 | 1200 | 0.1622 | 0.0057 | 0.0200 | 0.0760 | 98.3437 |
61
+ | 0.1035 | 0.1333 | 1600 | 0.1538 | 0.0057 | 0.0190 | 0.0760 | 98.6841 |
62
+ | 0.1186 | 0.1667 | 2000 | 0.1605 | 0.0057 | 0.0170 | 0.0760 | 98.9547 |
63
+ | 0.1285 | 0.2 | 2400 | 0.1675 | 0.0057 | 0.0190 | 0.0643 | 98.5663 |
64
+ | 0.1043 | 0.2333 | 2800 | 0.1511 | 0.0057 | 0.0220 | 0.0702 | 98.4283 |
65
+ | 0.1294 | 0.2667 | 3200 | 0.1647 | 0.0057 | 0.0150 | 0.0526 | 98.9361 |
66
+ | 0.0954 | 0.3 | 3600 | 0.1532 | 0.0057 | 0.0160 | 0.0526 | 98.7555 |
67
+ | 0.111 | 0.3333 | 4000 | 0.1577 | 0.0057 | 0.0210 | 0.0643 | 98.1890 |
68
+ | 0.114 | 0.3667 | 4400 | 0.1378 | 0.0057 | 0.0160 | 0.0585 | 98.6565 |
69
+ | 0.1183 | 0.4 | 4800 | 0.1163 | 0.0057 | 0.0070 | 0.0351 | 99.3075 |
70
+ | 0.1277 | 0.4333 | 5200 | 0.1571 | 0.0057 | 0.0160 | 0.0760 | 98.8328 |
71
+ | 0.1219 | 0.4667 | 5600 | 0.1571 | 0.0057 | 0.0150 | 0.0526 | 98.7910 |
72
+ | 0.1101 | 0.5 | 6000 | 0.1245 | 0.0057 | 0.0130 | 0.0526 | 99.0524 |
73
+ | 0.1069 | 0.5333 | 6400 | 0.1470 | 0.0057 | 0.0130 | 0.0585 | 99.0389 |
74
+ | 0.1126 | 0.5667 | 6800 | 0.1302 | 0.0057 | 0.0140 | 0.0526 | 98.9437 |
75
+ | 0.0837 | 1.0137 | 7200 | 0.1323 | 0.0057 | 0.0200 | 0.0702 | 98.4624 |
76
+ | 0.0809 | 1.047 | 7600 | 0.1180 | 0.0057 | 0.0100 | 0.0409 | 99.4630 |
77
+ | 0.0889 | 1.0803 | 8000 | 0.1241 | 0.0057 | 0.0180 | 0.0702 | 98.7486 |
78
+ | 0.0711 | 1.1137 | 8400 | 0.1174 | 0.0057 | 0.0150 | 0.0585 | 98.8769 |
79
+ | 0.0736 | 1.147 | 8800 | 0.1166 | 0.0057 | 0.0120 | 0.0468 | 99.0708 |
80
+ | 0.0786 | 1.1803 | 9200 | 0.1080 | 0.0057 | 0.0080 | 0.0351 | 99.5225 |
81
+ | 0.0686 | 1.2137 | 9600 | 0.1037 | 0.0057 | 0.0070 | 0.0292 | 99.5887 |
82
+ | 0.0738 | 1.2470 | 10000 | 0.1127 | 0.0057 | 0.0140 | 0.0468 | 99.0132 |
83
+ | 0.07 | 1.2803 | 10400 | 0.1051 | 0.0057 | 0.0120 | 0.0409 | 99.0954 |
84
+ | 0.0697 | 1.3137 | 10800 | 0.1003 | 0.0057 | 0.0090 | 0.0292 | 99.2171 |
85
+ | 0.0686 | 1.347 | 11200 | 0.1038 | 0.0057 | 0.0120 | 0.0351 | 98.9317 |
86
+ | 0.0763 | 1.3803 | 11600 | 0.1028 | 0.0057 | 0.0120 | 0.0351 | 98.9317 |
87
+ | 0.0717 | 1.4137 | 12000 | 0.1018 | 0.0057 | 0.0120 | 0.0351 | 98.9317 |
88
+
89
+
90
+ ### Framework versions
91
+
92
+ - Transformers 4.46.3
93
+ - Pytorch 2.5.1+cu121
94
+ - Datasets 3.1.0
95
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "/content/drive/MyDrive/Colab Notebooks/trocr/model",
3
+ "architectures": [
4
+ "VisionEncoderDecoderModel"
5
+ ],
6
+ "decoder": {
7
+ "_attn_implementation_autoset": false,
8
+ "_name_or_path": "",
9
+ "activation_dropout": 0.0,
10
+ "activation_function": "relu",
11
+ "add_cross_attention": true,
12
+ "architectures": null,
13
+ "attention_dropout": 0.0,
14
+ "bad_words_ids": null,
15
+ "begin_suppress_tokens": null,
16
+ "bos_token_id": 0,
17
+ "chunk_size_feed_forward": 0,
18
+ "classifier_dropout": 0.0,
19
+ "cross_attention_hidden_size": 384,
20
+ "d_model": 256,
21
+ "decoder_attention_heads": 8,
22
+ "decoder_ffn_dim": 1024,
23
+ "decoder_layerdrop": 0.0,
24
+ "decoder_layers": 6,
25
+ "decoder_start_token_id": 2,
26
+ "diversity_penalty": 0.0,
27
+ "do_sample": false,
28
+ "dropout": 0.1,
29
+ "early_stopping": false,
30
+ "encoder_no_repeat_ngram_size": 0,
31
+ "eos_token_id": 2,
32
+ "exponential_decay_length_penalty": null,
33
+ "finetuning_task": null,
34
+ "forced_bos_token_id": null,
35
+ "forced_eos_token_id": null,
36
+ "id2label": {
37
+ "0": "LABEL_0",
38
+ "1": "LABEL_1"
39
+ },
40
+ "init_std": 0.02,
41
+ "is_decoder": true,
42
+ "is_encoder_decoder": false,
43
+ "label2id": {
44
+ "LABEL_0": 0,
45
+ "LABEL_1": 1
46
+ },
47
+ "layernorm_embedding": true,
48
+ "length_penalty": 1.0,
49
+ "max_length": 20,
50
+ "max_position_embeddings": 512,
51
+ "min_length": 0,
52
+ "model_type": "trocr",
53
+ "no_repeat_ngram_size": 0,
54
+ "num_beam_groups": 1,
55
+ "num_beams": 1,
56
+ "num_return_sequences": 1,
57
+ "output_attentions": false,
58
+ "output_hidden_states": false,
59
+ "output_scores": false,
60
+ "pad_token_id": 1,
61
+ "prefix": null,
62
+ "problem_type": null,
63
+ "pruned_heads": {},
64
+ "remove_invalid_values": false,
65
+ "repetition_penalty": 1.0,
66
+ "return_dict": true,
67
+ "return_dict_in_generate": false,
68
+ "scale_embedding": true,
69
+ "sep_token_id": null,
70
+ "suppress_tokens": null,
71
+ "task_specific_params": null,
72
+ "temperature": 1.0,
73
+ "tf_legacy_loss": false,
74
+ "tie_encoder_decoder": false,
75
+ "tie_word_embeddings": false,
76
+ "tokenizer_class": null,
77
+ "top_k": 50,
78
+ "top_p": 1.0,
79
+ "torch_dtype": null,
80
+ "torchscript": false,
81
+ "typical_p": 1.0,
82
+ "use_bfloat16": false,
83
+ "use_cache": false,
84
+ "use_learned_position_embeddings": true,
85
+ "vocab_size": 64044
86
+ },
87
+ "decoder_start_token_id": 0,
88
+ "encoder": {
89
+ "_attn_implementation_autoset": false,
90
+ "_name_or_path": "",
91
+ "add_cross_attention": false,
92
+ "architectures": null,
93
+ "attention_probs_dropout_prob": 0.0,
94
+ "bad_words_ids": null,
95
+ "begin_suppress_tokens": null,
96
+ "bos_token_id": null,
97
+ "chunk_size_feed_forward": 0,
98
+ "cross_attention_hidden_size": null,
99
+ "decoder_start_token_id": null,
100
+ "diversity_penalty": 0.0,
101
+ "do_sample": false,
102
+ "early_stopping": false,
103
+ "encoder_no_repeat_ngram_size": 0,
104
+ "encoder_stride": 16,
105
+ "eos_token_id": null,
106
+ "exponential_decay_length_penalty": null,
107
+ "finetuning_task": null,
108
+ "forced_bos_token_id": null,
109
+ "forced_eos_token_id": null,
110
+ "hidden_act": "gelu",
111
+ "hidden_dropout_prob": 0.0,
112
+ "hidden_size": 384,
113
+ "id2label": {
114
+ "0": "LABEL_0",
115
+ "1": "LABEL_1"
116
+ },
117
+ "image_size": 384,
118
+ "initializer_range": 0.02,
119
+ "intermediate_size": 1536,
120
+ "is_decoder": false,
121
+ "is_encoder_decoder": false,
122
+ "label2id": {
123
+ "LABEL_0": 0,
124
+ "LABEL_1": 1
125
+ },
126
+ "layer_norm_eps": 1e-12,
127
+ "length_penalty": 1.0,
128
+ "max_length": 20,
129
+ "min_length": 0,
130
+ "model_type": "deit",
131
+ "no_repeat_ngram_size": 0,
132
+ "num_attention_heads": 6,
133
+ "num_beam_groups": 1,
134
+ "num_beams": 1,
135
+ "num_channels": 3,
136
+ "num_hidden_layers": 12,
137
+ "num_return_sequences": 1,
138
+ "output_attentions": false,
139
+ "output_hidden_states": false,
140
+ "output_scores": false,
141
+ "pad_token_id": null,
142
+ "patch_size": 16,
143
+ "prefix": null,
144
+ "problem_type": null,
145
+ "pruned_heads": {},
146
+ "qkv_bias": true,
147
+ "remove_invalid_values": false,
148
+ "repetition_penalty": 1.0,
149
+ "return_dict": true,
150
+ "return_dict_in_generate": false,
151
+ "sep_token_id": null,
152
+ "suppress_tokens": null,
153
+ "task_specific_params": null,
154
+ "temperature": 1.0,
155
+ "tf_legacy_loss": false,
156
+ "tie_encoder_decoder": false,
157
+ "tie_word_embeddings": true,
158
+ "tokenizer_class": null,
159
+ "top_k": 50,
160
+ "top_p": 1.0,
161
+ "torch_dtype": null,
162
+ "torchscript": false,
163
+ "typical_p": 1.0,
164
+ "use_bfloat16": false
165
+ },
166
+ "eos_token_id": 2,
167
+ "is_encoder_decoder": true,
168
+ "model_type": "vision-encoder-decoder",
169
+ "pad_token_id": 1,
170
+ "tie_word_embeddings": false,
171
+ "torch_dtype": "float32",
172
+ "transformers_version": "4.46.3",
173
+ "vocab_size": 64044
174
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 0,
3
+ "decoder_start_token_id": 2,
4
+ "early_stopping": true,
5
+ "eos_token_id": 2,
6
+ "length_penalty": 2.0,
7
+ "max_length": 64,
8
+ "no_repeat_ngram_size": 3,
9
+ "num_beams": 3,
10
+ "pad_token_id": 1,
11
+ "transformers_version": "4.46.3",
12
+ "use_cache": false
13
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e0add54603bfd0d8e5783c0d9b2ea30e3c8c26a724668066240ac832f785049
3
+ size 246430696
preprocessor_config.json ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "crop_size": {
3
+ "height": 224,
4
+ "width": 224
5
+ },
6
+ "do_center_crop": false,
7
+ "do_normalize": true,
8
+ "do_rescale": true,
9
+ "do_resize": true,
10
+ "image_mean": [
11
+ 0.5,
12
+ 0.5,
13
+ 0.5
14
+ ],
15
+ "image_processor_type": "DeiTImageProcessor",
16
+ "image_std": [
17
+ 0.5,
18
+ 0.5,
19
+ 0.5
20
+ ],
21
+ "resample": 3,
22
+ "rescale_factor": 0.00392156862745098,
23
+ "size": {
24
+ "height": 384,
25
+ "width": 384
26
+ }
27
+ }
runs/Dec09_09-58-26_f5a54d6e7030/events.out.tfevents.1733738333.f5a54d6e7030.547.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08e5be000f4fc07499a3e38e8c67d7ddf5f72454da16f8c66da6ce15d6c588b9
3
+ size 11850
runs/Dec09_10-02-28_f5a54d6e7030/events.out.tfevents.1733738561.f5a54d6e7030.547.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d2ca82c0ff69eb4c9e3d2ed9f11e2c5ca224505c0572904732778ebb8a84e887
3
+ size 49967
runs/Dec09_10-02-28_f5a54d6e7030/events.out.tfevents.1733741470.f5a54d6e7030.547.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1634b17bb26b270a84ad0300e36a9a6483c62eae18bdf52190bb0b30ccafbf75
3
+ size 568
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ea3a406bc35e2897b9e6805f72360ea367f6af53d083eaec29e91430121ecf39
3
+ size 5432