mariovigliar commited on
Commit
b8b139a
1 Parent(s): ea8d052

Model save

Browse files
Files changed (2) hide show
  1. README.md +58 -0
  2. generation_config.json +13 -0
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: microsoft/trocr-base-printed
3
+ tags:
4
+ - generated_from_trainer
5
+ model-index:
6
+ - name: trocr-base-printed_license_plates_ocr
7
+ results: []
8
+ ---
9
+
10
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
11
+ should probably proofread and complete it, then remove this comment. -->
12
+
13
+ # trocr-base-printed_license_plates_ocr
14
+
15
+ This model is a fine-tuned version of [microsoft/trocr-base-printed](https://huggingface.co/microsoft/trocr-base-printed) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Loss: 0.1479
18
+ - Cer: 0.0343
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 5e-05
38
+ - train_batch_size: 32
39
+ - eval_batch_size: 32
40
+ - seed: 42
41
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
42
+ - lr_scheduler_type: linear
43
+ - num_epochs: 2
44
+
45
+ ### Training results
46
+
47
+ | Training Loss | Epoch | Step | Validation Loss | Cer |
48
+ |:-------------:|:-----:|:----:|:---------------:|:------:|
49
+ | 0.356 | 1.0 | 500 | 0.1934 | 0.041 |
50
+ | 0.1558 | 2.0 | 1000 | 0.1479 | 0.0343 |
51
+
52
+
53
+ ### Framework versions
54
+
55
+ - Transformers 4.37.2
56
+ - Pytorch 2.0.0+cu117
57
+ - Datasets 2.17.0
58
+ - Tokenizers 0.15.2
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 0,
3
+ "decoder_start_token_id": 0,
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": 4,
10
+ "pad_token_id": 1,
11
+ "transformers_version": "4.37.2",
12
+ "use_cache": false
13
+ }