vccarvalho11 commited on
Commit
1140e01
·
verified ·
1 Parent(s): e201abc

Upload pp-ocrv6-tiny-det ONNX model

Browse files
Files changed (3) hide show
  1. README.md +46 -0
  2. inference.yml +52 -0
  3. model.onnx +3 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: onnx
3
+ tags:
4
+ - ocr
5
+ - paddleocr
6
+ - pp-ocrv6
7
+ - text-detection
8
+ - onnx
9
+ - inference4j
10
+ license: apache-2.0
11
+ pipeline_tag: object-detection
12
+ ---
13
+
14
+ # PP-OCRv6 Tiny Det — ONNX
15
+
16
+ ONNX export of [PaddlePaddle/PP-OCRv6_tiny_det_onnx](https://huggingface.co/PaddlePaddle/PP-OCRv6_tiny_det_onnx), the lightweight tiny text detection model from PaddleOCR PP-OCRv6 (~1.8 MB). Designed for resource-constrained environments.
17
+
18
+ Mirrored for use with [inference4j](https://github.com/inference4j/inference4j), an inference-only AI library for Java.
19
+
20
+ ## Original Source
21
+
22
+ - **Repository:** [PaddlePaddle](https://huggingface.co/PaddlePaddle/PP-OCRv6_tiny_det_onnx)
23
+ - **License:** apache-2.0
24
+
25
+ ## Usage with inference4j
26
+
27
+ ```java
28
+ try (var ocr = OcrPipeline.builder().build()) {
29
+ List<TextRegion> lines = ocr.read(image);
30
+ }
31
+ ```
32
+
33
+ ## Model Details
34
+
35
+ | Property | Value |
36
+ |----------|-------|
37
+ | Architecture | PP-OCRv6 Tiny Detection (DBNet) |
38
+ | Task | Text detection |
39
+ | Model size | ~1.8 MB |
40
+ | Input format | [batch, 3, H, W] (BGR, dynamic shape) |
41
+ | Original framework | PaddlePaddle (PP-OCRv6) |
42
+ | Technical report | [PP-OCRv6](https://github.com/PaddlePaddle/PaddleOCR) |
43
+
44
+ ## License
45
+
46
+ This model is licensed under the [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0). Original model by [PaddlePaddle](https://github.com/PaddlePaddle/PaddleOCR).
inference.yml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: PP-OCRv6_tiny_det
3
+ Hpi:
4
+ backend_configs:
5
+ paddle_infer:
6
+ trt_dynamic_shapes: &id001
7
+ x:
8
+ - - 1
9
+ - 3
10
+ - 32
11
+ - 32
12
+ - - 1
13
+ - 3
14
+ - 736
15
+ - 736
16
+ - - 1
17
+ - 3
18
+ - 4000
19
+ - 4000
20
+ tensorrt:
21
+ dynamic_shapes: *id001
22
+ PostProcess:
23
+ box_thresh: 0.4
24
+ max_candidates: 3000
25
+ name: DBPostProcess
26
+ thresh: 0.2
27
+ unclip_ratio: 1.4
28
+ PreProcess:
29
+ transform_ops:
30
+ - DecodeImage:
31
+ channel_first: false
32
+ img_mode: BGR
33
+ - DetLabelEncode: null
34
+ - DetResizeForTest: null
35
+ - NormalizeImage:
36
+ mean:
37
+ - 0.485
38
+ - 0.456
39
+ - 0.406
40
+ order: hwc
41
+ scale: 1./255.
42
+ std:
43
+ - 0.229
44
+ - 0.224
45
+ - 0.225
46
+ - ToCHWImage: null
47
+ - KeepKeys:
48
+ keep_keys:
49
+ - image
50
+ - shape
51
+ - polys
52
+ - ignore_tags
model.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:193bab7a04fca699a6c82e6abb5b81bdb28177f0abd4062552b04908dafb19f8
3
+ size 1780590