Tingquan commited on
Commit
c286cc0
·
verified ·
1 Parent(s): 96b3193

Upload folder using huggingface_hub

Browse files
Files changed (5) hide show
  1. .gitattributes +1 -0
  2. config.json +111 -0
  3. inference.json +0 -0
  4. inference.pdiparams +3 -0
  5. inference.yml +53 -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,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "Global": {
3
+ "model_name": "PP-OCRv4_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": {
70
+ "resize_long": 960
71
+ }
72
+ },
73
+ {
74
+ "NormalizeImage": {
75
+ "mean": [
76
+ 0.485,
77
+ 0.456,
78
+ 0.406
79
+ ],
80
+ "order": "hwc",
81
+ "scale": "1./255.",
82
+ "std": [
83
+ 0.229,
84
+ 0.224,
85
+ 0.225
86
+ ]
87
+ }
88
+ },
89
+ {
90
+ "ToCHWImage": null
91
+ },
92
+ {
93
+ "KeepKeys": {
94
+ "keep_keys": [
95
+ "image",
96
+ "shape",
97
+ "polys",
98
+ "ignore_tags"
99
+ ]
100
+ }
101
+ }
102
+ ]
103
+ },
104
+ "PostProcess": {
105
+ "name": "DBPostProcess",
106
+ "thresh": 0.3,
107
+ "box_thresh": 0.6,
108
+ "max_candidates": 1000,
109
+ "unclip_ratio": 1.5
110
+ }
111
+ }
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:48cecf9e30e9261a634126bc5211a2736508ae89d2d6199ef2ede06cdebe678f
3
+ size 113295054
inference.yml ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Global:
2
+ model_name: PP-OCRv4_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:
29
+ resize_long: 960
30
+ - NormalizeImage:
31
+ mean:
32
+ - 0.485
33
+ - 0.456
34
+ - 0.406
35
+ order: hwc
36
+ scale: 1./255.
37
+ std:
38
+ - 0.229
39
+ - 0.224
40
+ - 0.225
41
+ - ToCHWImage: null
42
+ - KeepKeys:
43
+ keep_keys:
44
+ - image
45
+ - shape
46
+ - polys
47
+ - ignore_tags
48
+ PostProcess:
49
+ name: DBPostProcess
50
+ thresh: 0.3
51
+ box_thresh: 0.6
52
+ max_candidates: 1000
53
+ unclip_ratio: 1.5