Add fimu-docproc-research/master_DoctrOcrEngine model
Browse files- README.md +46 -0
- config.json +21 -0
- pytorch_model.bin +3 -0
README.md
ADDED
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
|
2 |
+
---
|
3 |
+
language: cz
|
4 |
+
---
|
5 |
+
**Optical Character Recognition made seamless & accessible to anyone, powered by PyTorch**
|
6 |
+
|
7 |
+
## Task: recognition
|
8 |
+
### Example usage:
|
9 |
+
|
10 |
+
```python
|
11 |
+
>>> from doctr.io import DocumentFile
|
12 |
+
>>> from doctr.models import ocr_predictor, from_hub
|
13 |
+
|
14 |
+
>>> img = DocumentFile.from_images(['<image_path>'])
|
15 |
+
>>> # Load your model from the hub
|
16 |
+
>>> model = from_hub('mindee/my-model')
|
17 |
+
|
18 |
+
>>> # Pass it to the predictor
|
19 |
+
>>> # If your model is a recognition model:
|
20 |
+
>>> predictor = ocr_predictor(det_arch='db_resnet50',
|
21 |
+
>>> reco_arch=model,
|
22 |
+
>>> pretrained=True)
|
23 |
+
|
24 |
+
>>> # Get your predictions
|
25 |
+
>>> res = predictor(img)
|
26 |
+
```
|
27 |
+
|
28 |
+
Training configuration and logs: https://wandb.ai/xbankov/text-recognition
|
29 |
+
### Run Configuration
|
30 |
+
|
31 |
+
{
|
32 |
+
"hf_dataset_name": "fimu-docproc-research/born_digital_recognition",
|
33 |
+
"name": "master_250_512_32_0.025476028686122493_0.08526220363233356_constant_da2de2d1_f3c04964",
|
34 |
+
"epochs": 250,
|
35 |
+
"lr": 0.025476028686122493,
|
36 |
+
"weight_decay": 0.08526220363233356,
|
37 |
+
"batch_size": 512,
|
38 |
+
"input_size": 32,
|
39 |
+
"sched": "constant",
|
40 |
+
"sample": null,
|
41 |
+
"workers": 16,
|
42 |
+
"wb": true,
|
43 |
+
"push_to_hub": "fimu-docproc-research/master",
|
44 |
+
"test_only": false,
|
45 |
+
"arch": "master"
|
46 |
+
}
|
config.json
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"mean": [
|
3 |
+
0.694,
|
4 |
+
0.695,
|
5 |
+
0.693
|
6 |
+
],
|
7 |
+
"std": [
|
8 |
+
0.299,
|
9 |
+
0.296,
|
10 |
+
0.301
|
11 |
+
],
|
12 |
+
"input_shape": [
|
13 |
+
3,
|
14 |
+
32,
|
15 |
+
128
|
16 |
+
],
|
17 |
+
"vocab": "®©äàőôöüűĺľŕĽÖÜߧ0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~°£€¥¢฿áčďéěíňóřšťúůýžÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ",
|
18 |
+
"url": null,
|
19 |
+
"arch": "master",
|
20 |
+
"task": "recognition"
|
21 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b30a11f949d3006d23bad9cc8c3b7befde438ea0e601e8ebbeedc9d567d9c036
|
3 |
+
size 243969671
|