End of training
Browse files
README.md
ADDED
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: Ransaka/sinhala-ocr-model
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
model-index:
|
6 |
+
- name: sinhala-ocr-model-v3
|
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 |
+
# sinhala-ocr-model-v3
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [Ransaka/sinhala-ocr-model](https://huggingface.co/Ransaka/sinhala-ocr-model) on an unknown dataset.
|
16 |
+
It achieves the following results on the evaluation set:
|
17 |
+
- Loss: 4.7242
|
18 |
+
- Cer: 0.2764
|
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: 1e-05
|
38 |
+
- train_batch_size: 8
|
39 |
+
- eval_batch_size: 8
|
40 |
+
- seed: 42
|
41 |
+
- gradient_accumulation_steps: 2
|
42 |
+
- total_train_batch_size: 16
|
43 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
44 |
+
- lr_scheduler_type: linear
|
45 |
+
- training_steps: 6000
|
46 |
+
- mixed_precision_training: Native AMP
|
47 |
+
|
48 |
+
### Training results
|
49 |
+
|
50 |
+
| Training Loss | Epoch | Step | Validation Loss | Cer |
|
51 |
+
|:-------------:|:-----:|:----:|:---------------:|:------:|
|
52 |
+
| 3.6711 | 6.54 | 500 | 4.9311 | 0.4178 |
|
53 |
+
| 2.3499 | 13.07 | 1000 | 4.5366 | 0.3482 |
|
54 |
+
| 1.5601 | 19.61 | 1500 | 4.4634 | 0.3204 |
|
55 |
+
| 0.987 | 26.14 | 2000 | 4.4804 | 0.3011 |
|
56 |
+
| 0.6487 | 32.68 | 2500 | 4.6310 | 0.2863 |
|
57 |
+
| 0.3816 | 39.22 | 3000 | 4.6093 | 0.2788 |
|
58 |
+
| 0.3494 | 45.75 | 3500 | 4.6291 | 0.2827 |
|
59 |
+
| 0.2357 | 52.29 | 4000 | 4.6399 | 0.2780 |
|
60 |
+
| 0.2188 | 58.82 | 4500 | 4.6313 | 0.2798 |
|
61 |
+
| 0.1413 | 65.36 | 5000 | 4.6828 | 0.2768 |
|
62 |
+
| 0.0985 | 71.9 | 5500 | 4.7135 | 0.2772 |
|
63 |
+
| 0.1086 | 78.43 | 6000 | 4.7242 | 0.2764 |
|
64 |
+
|
65 |
+
|
66 |
+
### Framework versions
|
67 |
+
|
68 |
+
- Transformers 4.35.2
|
69 |
+
- Pytorch 2.0.0
|
70 |
+
- Datasets 2.16.0
|
71 |
+
- Tokenizers 0.15.0
|
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": 3,
|
6 |
+
"length_penalty": 2.0,
|
7 |
+
"max_length": 64,
|
8 |
+
"no_repeat_ngram_size": 3,
|
9 |
+
"num_beams": 4,
|
10 |
+
"pad_token_id": 0,
|
11 |
+
"transformers_version": "4.35.2",
|
12 |
+
"use_cache": false
|
13 |
+
}
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 1260933520
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fa9f7341a4eb1f781de092c1537a2ca8c2fdff5462a91f9288cf8c6029b48bb4
|
3 |
size 1260933520
|
runs/Jan05_08-06-57_a15af13407bd/events.out.tfevents.1704442018.a15af13407bd.26.0
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c1fcf4344d1c4876861427e970fee1d165e31c99bc85dc86d99c2e832e1ec442
|
3 |
+
size 50323
|