xbankov commited on
Commit
0c951ae
1 Parent(s): 1695861

Add fimu-docproc-research/master_0.0.1_DoctrOcrEngine model

Browse files
Files changed (3) hide show
  1. README.md +46 -0
  2. config.json +21 -0
  3. 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",
33
+ "name": "master_20221106-215645",
34
+ "epochs": 0,
35
+ "lr": 0.001,
36
+ "weight_decay": 0,
37
+ "batch_size": 512,
38
+ "input_size": 32,
39
+ "sched": "cosine",
40
+ "sample": null,
41
+ "workers": 16,
42
+ "wb": false,
43
+ "push_to_hub": "fimu-docproc-research/master_0.0.1",
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": "'ő…·ĺŕĽòà¾Èߕܜ䌴ôöÖ“è§ű®ü ľ„–渚fi'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:e123a5ead9477a0b95a091ae90b676aa32353ae3706100fde2d7dbedf93f6910
3
+ size 244051655