Felix92 commited on
Commit
42f96fb
·
1 Parent(s): 4888ea0

Add onnxtr-viptr-tiny model

Browse files
Files changed (3) hide show
  1. README.md +40 -0
  2. config.json +22 -0
  3. model.onnx +3 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ language:
4
+ - en
5
+ - fr
6
+ license: apache-2.0
7
+ ---
8
+
9
+ <p align="center">
10
+ <img src="https://github.com/felixdittrich92/OnnxTR/raw/main/docs/images/logo.jpg" width="40%">
11
+ </p>
12
+
13
+ **Optical Character Recognition made seamless & accessible to anyone, powered by Onnxruntime**
14
+
15
+ ## Task: recognition
16
+
17
+ https://github.com/felixdittrich92/OnnxTR
18
+
19
+ ### Example usage:
20
+
21
+ ```python
22
+ >>> from onnxtr.io import DocumentFile
23
+ >>> from onnxtr.models import ocr_predictor, from_hub
24
+
25
+ >>> img = DocumentFile.from_images(['<image_path>'])
26
+ >>> # Load your model from the hub
27
+ >>> model = from_hub('onnxtr/my-model')
28
+
29
+ >>> # Pass it to the predictor
30
+ >>> # If your model is a recognition model:
31
+ >>> predictor = ocr_predictor(det_arch='db_mobilenet_v3_large',
32
+ >>> reco_arch=model)
33
+
34
+ >>> # If your model is a detection model:
35
+ >>> predictor = ocr_predictor(det_arch=model,
36
+ >>> reco_arch='crnn_mobilenet_v3_small')
37
+
38
+ >>> # Get your predictions
39
+ >>> res = predictor(img)
40
+ ```
config.json ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": "https://github.com/felixdittrich92/OnnxTR/releases/download/v0.6.3/viptr_tiny-499b8015.onnx",
19
+ "url_8_bit": "https://github.com/felixdittrich92/OnnxTR/releases/download/v0.6.3/viptr_tiny-499b8015.onnx",
20
+ "arch": "viptr_tiny",
21
+ "task": "recognition"
22
+ }
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:499b80150518a7b714b42fe42136f80d88af3ca4d98847a0ac3349accf40b161
3
+ size 20104389