Model save
Browse files- README.md +77 -0
- generation_config.json +8 -0
README.md
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
model-index:
|
6 |
+
- name: swinv2-ocr-finetuned-panjabi
|
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 |
+
# swinv2-ocr-finetuned-panjabi
|
14 |
+
|
15 |
+
This model was trained from scratch on an unknown dataset.
|
16 |
+
It achieves the following results on the evaluation set:
|
17 |
+
- Loss: 2.5755
|
18 |
+
- Cer: 1.0
|
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: 3e-05
|
38 |
+
- train_batch_size: 4
|
39 |
+
- eval_batch_size: 1
|
40 |
+
- seed: 42
|
41 |
+
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
|
42 |
+
- lr_scheduler_type: linear
|
43 |
+
- lr_scheduler_warmup_ratio: 0.1
|
44 |
+
- num_epochs: 20
|
45 |
+
|
46 |
+
### Training results
|
47 |
+
|
48 |
+
| Training Loss | Epoch | Step | Validation Loss | Cer |
|
49 |
+
|:-------------:|:-----:|:------:|:---------------:|:------:|
|
50 |
+
| 3.1527 | 1.0 | 5883 | 3.4368 | 1.0 |
|
51 |
+
| 3.271 | 2.0 | 11766 | 3.2032 | 1.0001 |
|
52 |
+
| 2.9587 | 3.0 | 17649 | 3.0627 | 1.0 |
|
53 |
+
| 2.4732 | 4.0 | 23532 | 3.0279 | 1.0108 |
|
54 |
+
| 2.1076 | 5.0 | 29415 | 2.5229 | 0.9997 |
|
55 |
+
| 1.8924 | 6.0 | 35298 | 2.4476 | 1.0 |
|
56 |
+
| 1.7687 | 7.0 | 41181 | 2.4754 | 1.0 |
|
57 |
+
| 1.5841 | 8.0 | 47064 | 2.5346 | 1.0 |
|
58 |
+
| 1.6036 | 9.0 | 52947 | 2.4699 | 1.0 |
|
59 |
+
| 1.3961 | 10.0 | 58830 | 2.4823 | 1.0 |
|
60 |
+
| 1.2846 | 11.0 | 64713 | 2.5168 | 1.0 |
|
61 |
+
| 1.0196 | 12.0 | 70596 | 2.4514 | 1.0 |
|
62 |
+
| 1.1475 | 13.0 | 76479 | 2.5678 | 1.0 |
|
63 |
+
| 1.0415 | 14.0 | 82362 | 2.6223 | 1.0 |
|
64 |
+
| 1.0472 | 15.0 | 88245 | 2.6513 | 1.0 |
|
65 |
+
| 0.7244 | 16.0 | 94128 | 2.4963 | 1.0 |
|
66 |
+
| 0.6422 | 17.0 | 100011 | 2.5385 | 1.0 |
|
67 |
+
| 0.7878 | 18.0 | 105894 | 2.6305 | 1.0 |
|
68 |
+
| 0.6919 | 19.0 | 111777 | 2.5720 | 1.0 |
|
69 |
+
| 0.5415 | 20.0 | 117660 | 2.5755 | 1.0 |
|
70 |
+
|
71 |
+
|
72 |
+
### Framework versions
|
73 |
+
|
74 |
+
- Transformers 4.46.0
|
75 |
+
- Pytorch 2.5.1+cu118
|
76 |
+
- Datasets 2.20.0
|
77 |
+
- Tokenizers 0.20.1
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token_id": 0,
|
3 |
+
"decoder_start_token_id": 0,
|
4 |
+
"eos_token_id": 2,
|
5 |
+
"max_length": 512,
|
6 |
+
"pad_token_id": 1,
|
7 |
+
"transformers_version": "4.46.0"
|
8 |
+
}
|