Upload folder using huggingface_hub
Browse files- .gitattributes +1 -0
- config.json +112 -0
- inference.json +0 -0
- inference.pdiparams +3 -0
- inference.yml +54 -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,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Global": {
|
| 3 |
+
"model_name": "PP-OCRv4_mobile_seal_det"
|
| 4 |
+
},
|
| 5 |
+
"Hpi": {
|
| 6 |
+
"backend_configs": {
|
| 7 |
+
"paddle_infer": {
|
| 8 |
+
"trt_dynamic_shapes": {
|
| 9 |
+
"x": [
|
| 10 |
+
[
|
| 11 |
+
1,
|
| 12 |
+
3,
|
| 13 |
+
160,
|
| 14 |
+
160
|
| 15 |
+
],
|
| 16 |
+
[
|
| 17 |
+
1,
|
| 18 |
+
3,
|
| 19 |
+
640,
|
| 20 |
+
640
|
| 21 |
+
],
|
| 22 |
+
[
|
| 23 |
+
1,
|
| 24 |
+
3,
|
| 25 |
+
1280,
|
| 26 |
+
1280
|
| 27 |
+
]
|
| 28 |
+
]
|
| 29 |
+
}
|
| 30 |
+
},
|
| 31 |
+
"tensorrt": {
|
| 32 |
+
"dynamic_shapes": {
|
| 33 |
+
"x": [
|
| 34 |
+
[
|
| 35 |
+
1,
|
| 36 |
+
3,
|
| 37 |
+
160,
|
| 38 |
+
160
|
| 39 |
+
],
|
| 40 |
+
[
|
| 41 |
+
1,
|
| 42 |
+
3,
|
| 43 |
+
640,
|
| 44 |
+
640
|
| 45 |
+
],
|
| 46 |
+
[
|
| 47 |
+
1,
|
| 48 |
+
3,
|
| 49 |
+
1280,
|
| 50 |
+
1280
|
| 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": 736
|
| 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.2,
|
| 107 |
+
"box_thresh": 0.6,
|
| 108 |
+
"max_candidates": 1000,
|
| 109 |
+
"unclip_ratio": 0.5,
|
| 110 |
+
"box_type": "poly"
|
| 111 |
+
}
|
| 112 |
+
}
|
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:6c8eaed9baf7af3a55c9b36d5aeabc6061b99b2cb9dfb7d0157397a1aad0fe44
|
| 3 |
+
size 4692937
|
inference.yml
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Global:
|
| 2 |
+
model_name: PP-OCRv4_mobile_seal_det
|
| 3 |
+
Hpi:
|
| 4 |
+
backend_configs:
|
| 5 |
+
paddle_infer:
|
| 6 |
+
trt_dynamic_shapes: &id001
|
| 7 |
+
x:
|
| 8 |
+
- - 1
|
| 9 |
+
- 3
|
| 10 |
+
- 160
|
| 11 |
+
- 160
|
| 12 |
+
- - 1
|
| 13 |
+
- 3
|
| 14 |
+
- 640
|
| 15 |
+
- 640
|
| 16 |
+
- - 1
|
| 17 |
+
- 3
|
| 18 |
+
- 1280
|
| 19 |
+
- 1280
|
| 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: 736
|
| 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.2
|
| 51 |
+
box_thresh: 0.6
|
| 52 |
+
max_candidates: 1000
|
| 53 |
+
unclip_ratio: 0.5
|
| 54 |
+
box_type: poly
|