Tingquan commited on
Commit
8eb30d4
·
verified ·
1 Parent(s): f70f3c7

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +109 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +52 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ inference.pdiparams filter=lfs diff=lfs merge=lfs -text
config.json ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Global": {
3
+ "model_name": "PP-OCRv3_server_det"
4
+ },
5
+ "Hpi": {
6
+ "backend_configs": {
7
+ "paddle_infer": {
8
+ "trt_dynamic_shapes": {
9
+ "x": [
10
+ [
11
+ 1,
12
+ 3,
13
+ 32,
14
+ 32
15
+ ],
16
+ [
17
+ 1,
18
+ 3,
19
+ 736,
20
+ 736
21
+ ],
22
+ [
23
+ 1,
24
+ 3,
25
+ 4000,
26
+ 4000
27
+ ]
28
+ ]
29
+ }
30
+ },
31
+ "tensorrt": {
32
+ "dynamic_shapes": {
33
+ "x": [
34
+ [
35
+ 1,
36
+ 3,
37
+ 32,
38
+ 32
39
+ ],
40
+ [
41
+ 1,
42
+ 3,
43
+ 736,
44
+ 736
45
+ ],
46
+ [
47
+ 1,
48
+ 3,
49
+ 4000,
50
+ 4000
51
+ ]
52
+ ]
53
+ }
54
+ }
55
+ }
56
+ },
57
+ "PreProcess": {
58
+ "transform_ops": [
59
+ {
60
+ "DecodeImage": {
61
+ "channel_first": false,
62
+ "img_mode": "BGR"
63
+ }
64
+ },
65
+ {
66
+ "DetLabelEncode": null
67
+ },
68
+ {
69
+ "DetResizeForTest": null
70
+ },
71
+ {
72
+ "NormalizeImage": {
73
+ "mean": [
74
+ 0.485,
75
+ 0.456,
76
+ 0.406
77
+ ],
78
+ "order": "hwc",
79
+ "scale": "1./255.",
80
+ "std": [
81
+ 0.229,
82
+ 0.224,
83
+ 0.225
84
+ ]
85
+ }
86
+ },
87
+ {
88
+ "ToCHWImage": null
89
+ },
90
+ {
91
+ "KeepKeys": {
92
+ "keep_keys": [
93
+ "image",
94
+ "shape",
95
+ "polys",
96
+ "ignore_tags"
97
+ ]
98
+ }
99
+ }
100
+ ]
101
+ },
102
+ "PostProcess": {
103
+ "name": "DBPostProcess",
104
+ "thresh": 0.3,
105
+ "box_thresh": 0.6,
106
+ "max_candidates": 1000,
107
+ "unclip_ratio": 1.5
108
+ }
109
+ }
inference.json ADDED
The diff for this file is too large to render. See raw diff
 
inference.pdiparams ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:46c6d3075d473dffd6d79ede8e24124c3bcd66c63e1dfbcbbd466a7b401b584b
3
+ size 128526785
inference.yml ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: PP-OCRv3_server_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
+ PreProcess:
23
+ transform_ops:
24
+ - DecodeImage:
25
+ channel_first: false
26
+ img_mode: BGR
27
+ - DetLabelEncode: null
28
+ - DetResizeForTest: null
29
+ - NormalizeImage:
30
+ mean:
31
+ - 0.485
32
+ - 0.456
33
+ - 0.406
34
+ order: hwc
35
+ scale: 1./255.
36
+ std:
37
+ - 0.229
38
+ - 0.224
39
+ - 0.225
40
+ - ToCHWImage: null
41
+ - KeepKeys:
42
+ keep_keys:
43
+ - image
44
+ - shape
45
+ - polys
46
+ - ignore_tags
47
+ PostProcess:
48
+ name: DBPostProcess
49
+ thresh: 0.3
50
+ box_thresh: 0.6
51
+ max_candidates: 1000
52
+ unclip_ratio: 1.5