narugo1992
commited on
Commit
·
9357e07
1
Parent(s):
9e73048
Upload models
Browse files- dbnet_resnet18_fpnc_1200e_totaltext/deploy.json +16 -0
- dbnet_resnet18_fpnc_1200e_totaltext/detail.json +45 -0
- dbnet_resnet18_fpnc_1200e_totaltext/end2end.onnx +3 -0
- dbnet_resnet18_fpnc_1200e_totaltext/output_onnxruntime.jpg +0 -0
- dbnet_resnet18_fpnc_1200e_totaltext/output_pytorch.jpg +0 -0
- dbnet_resnet18_fpnc_1200e_totaltext/pipeline.json +111 -0
- dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/deploy.json +16 -0
- dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/detail.json +45 -0
- dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/end2end.onnx +3 -0
- dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/output_onnxruntime.jpg +0 -0
- dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/output_pytorch.jpg +0 -0
- dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/pipeline.json +107 -0
- dbnet_resnet50-oclip_fpnc_1200e_icdar2015/deploy.json +16 -0
- dbnet_resnet50-oclip_fpnc_1200e_icdar2015/detail.json +45 -0
- dbnet_resnet50-oclip_fpnc_1200e_icdar2015/end2end.onnx +3 -0
- dbnet_resnet50-oclip_fpnc_1200e_icdar2015/output_onnxruntime.jpg +0 -0
- dbnet_resnet50-oclip_fpnc_1200e_icdar2015/output_pytorch.jpg +0 -0
- dbnet_resnet50-oclip_fpnc_1200e_icdar2015/pipeline.json +107 -0
- dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/deploy.json +16 -0
- dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/detail.json +45 -0
- dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/end2end.onnx +3 -0
- dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/output_onnxruntime.jpg +0 -0
- dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/output_pytorch.jpg +0 -0
- dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/pipeline.json +107 -0
- dbnetpp_resnet50_fpnc_1200e_icdar2015/deploy.json +16 -0
- dbnetpp_resnet50_fpnc_1200e_icdar2015/detail.json +45 -0
- dbnetpp_resnet50_fpnc_1200e_icdar2015/end2end.onnx +3 -0
- dbnetpp_resnet50_fpnc_1200e_icdar2015/output_onnxruntime.jpg +0 -0
- dbnetpp_resnet50_fpnc_1200e_icdar2015/output_pytorch.jpg +0 -0
- dbnetpp_resnet50_fpnc_1200e_icdar2015/pipeline.json +107 -0
dbnet_resnet18_fpnc_1200e_totaltext/deploy.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.3.0",
|
| 3 |
+
"task": "TextDetector",
|
| 4 |
+
"models": [
|
| 5 |
+
{
|
| 6 |
+
"name": "dbnet",
|
| 7 |
+
"net": "end2end.onnx",
|
| 8 |
+
"weights": "",
|
| 9 |
+
"backend": "onnxruntime",
|
| 10 |
+
"precision": "FP32",
|
| 11 |
+
"batch_size": 1,
|
| 12 |
+
"dynamic_shape": true
|
| 13 |
+
}
|
| 14 |
+
],
|
| 15 |
+
"customs": []
|
| 16 |
+
}
|
dbnet_resnet18_fpnc_1200e_totaltext/detail.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.3.0",
|
| 3 |
+
"codebase": {
|
| 4 |
+
"task": "TextDetection",
|
| 5 |
+
"codebase": "mmocr",
|
| 6 |
+
"version": "1.0.1",
|
| 7 |
+
"pth": "./dbnet_resnet18_fpnc_1200e_totaltext-3ed3233c.pth",
|
| 8 |
+
"config": "dbnet_resnet18_fpnc_1200e_totaltext.py"
|
| 9 |
+
},
|
| 10 |
+
"codebase_config": {
|
| 11 |
+
"type": "mmocr",
|
| 12 |
+
"task": "TextDetection"
|
| 13 |
+
},
|
| 14 |
+
"onnx_config": {
|
| 15 |
+
"type": "onnx",
|
| 16 |
+
"export_params": true,
|
| 17 |
+
"keep_initializers_as_inputs": false,
|
| 18 |
+
"opset_version": 11,
|
| 19 |
+
"save_file": "end2end.onnx",
|
| 20 |
+
"input_names": [
|
| 21 |
+
"input"
|
| 22 |
+
],
|
| 23 |
+
"output_names": [
|
| 24 |
+
"output"
|
| 25 |
+
],
|
| 26 |
+
"input_shape": null,
|
| 27 |
+
"optimize": true,
|
| 28 |
+
"dynamic_axes": {
|
| 29 |
+
"input": {
|
| 30 |
+
"0": "batch",
|
| 31 |
+
"2": "height",
|
| 32 |
+
"3": "width"
|
| 33 |
+
},
|
| 34 |
+
"output": {
|
| 35 |
+
"0": "batch",
|
| 36 |
+
"2": "height",
|
| 37 |
+
"3": "width"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"backend_config": {
|
| 42 |
+
"type": "onnxruntime"
|
| 43 |
+
},
|
| 44 |
+
"calib_config": {}
|
| 45 |
+
}
|
dbnet_resnet18_fpnc_1200e_totaltext/end2end.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ef7f652e18ac2e129f1c35247a0078d53780207d649e1f0a71d0d2dd5b113075
|
| 3 |
+
size 48715784
|
dbnet_resnet18_fpnc_1200e_totaltext/output_onnxruntime.jpg
ADDED
|
dbnet_resnet18_fpnc_1200e_totaltext/output_pytorch.jpg
ADDED
|
dbnet_resnet18_fpnc_1200e_totaltext/pipeline.json
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pipeline": {
|
| 3 |
+
"input": [
|
| 4 |
+
"img"
|
| 5 |
+
],
|
| 6 |
+
"output": [
|
| 7 |
+
"post_output"
|
| 8 |
+
],
|
| 9 |
+
"tasks": [
|
| 10 |
+
{
|
| 11 |
+
"type": "Task",
|
| 12 |
+
"module": "Transform",
|
| 13 |
+
"name": "Preprocess",
|
| 14 |
+
"input": [
|
| 15 |
+
"img"
|
| 16 |
+
],
|
| 17 |
+
"output": [
|
| 18 |
+
"prep_output"
|
| 19 |
+
],
|
| 20 |
+
"transforms": [
|
| 21 |
+
{
|
| 22 |
+
"color_type": "color_ignore_orientation",
|
| 23 |
+
"type": "LoadImageFromFile"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"keep_ratio": true,
|
| 27 |
+
"type": "Resize",
|
| 28 |
+
"size": [
|
| 29 |
+
1333,
|
| 30 |
+
736
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"min_poly_points": 4,
|
| 35 |
+
"type": "FixInvalidPolygon"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "Normalize",
|
| 39 |
+
"to_rgb": true,
|
| 40 |
+
"mean": [
|
| 41 |
+
123.675,
|
| 42 |
+
116.28,
|
| 43 |
+
103.53
|
| 44 |
+
],
|
| 45 |
+
"std": [
|
| 46 |
+
58.395,
|
| 47 |
+
57.12,
|
| 48 |
+
57.375
|
| 49 |
+
]
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"type": "Pad",
|
| 53 |
+
"size_divisor": 32
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"type": "DefaultFormatBundle"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"meta_keys": [
|
| 60 |
+
"filename",
|
| 61 |
+
"img_norm_cfg",
|
| 62 |
+
"ori_shape",
|
| 63 |
+
"ori_filename",
|
| 64 |
+
"scale_factor",
|
| 65 |
+
"flip",
|
| 66 |
+
"pad_shape",
|
| 67 |
+
"img_shape",
|
| 68 |
+
"valid_ratio",
|
| 69 |
+
"flip_direction",
|
| 70 |
+
"img_path"
|
| 71 |
+
],
|
| 72 |
+
"type": "Collect",
|
| 73 |
+
"keys": [
|
| 74 |
+
"img"
|
| 75 |
+
]
|
| 76 |
+
}
|
| 77 |
+
]
|
| 78 |
+
},
|
| 79 |
+
{
|
| 80 |
+
"name": "dbnet",
|
| 81 |
+
"type": "Task",
|
| 82 |
+
"module": "Net",
|
| 83 |
+
"is_batched": true,
|
| 84 |
+
"input": [
|
| 85 |
+
"prep_output"
|
| 86 |
+
],
|
| 87 |
+
"output": [
|
| 88 |
+
"infer_output"
|
| 89 |
+
],
|
| 90 |
+
"input_map": {
|
| 91 |
+
"img": "input"
|
| 92 |
+
},
|
| 93 |
+
"output_map": {}
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"type": "Task",
|
| 97 |
+
"module": "mmocr",
|
| 98 |
+
"name": "postprocess",
|
| 99 |
+
"component": "DBHead",
|
| 100 |
+
"params": {},
|
| 101 |
+
"output": [
|
| 102 |
+
"post_output"
|
| 103 |
+
],
|
| 104 |
+
"input": [
|
| 105 |
+
"prep_output",
|
| 106 |
+
"infer_output"
|
| 107 |
+
]
|
| 108 |
+
}
|
| 109 |
+
]
|
| 110 |
+
}
|
| 111 |
+
}
|
dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/deploy.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.3.0",
|
| 3 |
+
"task": "TextDetector",
|
| 4 |
+
"models": [
|
| 5 |
+
{
|
| 6 |
+
"name": "dbnet",
|
| 7 |
+
"net": "end2end.onnx",
|
| 8 |
+
"weights": "",
|
| 9 |
+
"backend": "onnxruntime",
|
| 10 |
+
"precision": "FP32",
|
| 11 |
+
"batch_size": 1,
|
| 12 |
+
"dynamic_shape": true
|
| 13 |
+
}
|
| 14 |
+
],
|
| 15 |
+
"customs": []
|
| 16 |
+
}
|
dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/detail.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.3.0",
|
| 3 |
+
"codebase": {
|
| 4 |
+
"task": "TextDetection",
|
| 5 |
+
"codebase": "mmocr",
|
| 6 |
+
"version": "1.0.1",
|
| 7 |
+
"pth": "./dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015_20220828_124917-452c443c.pth",
|
| 8 |
+
"config": "dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015.py"
|
| 9 |
+
},
|
| 10 |
+
"codebase_config": {
|
| 11 |
+
"type": "mmocr",
|
| 12 |
+
"task": "TextDetection"
|
| 13 |
+
},
|
| 14 |
+
"onnx_config": {
|
| 15 |
+
"type": "onnx",
|
| 16 |
+
"export_params": true,
|
| 17 |
+
"keep_initializers_as_inputs": false,
|
| 18 |
+
"opset_version": 11,
|
| 19 |
+
"save_file": "end2end.onnx",
|
| 20 |
+
"input_names": [
|
| 21 |
+
"input"
|
| 22 |
+
],
|
| 23 |
+
"output_names": [
|
| 24 |
+
"output"
|
| 25 |
+
],
|
| 26 |
+
"input_shape": null,
|
| 27 |
+
"optimize": true,
|
| 28 |
+
"dynamic_axes": {
|
| 29 |
+
"input": {
|
| 30 |
+
"0": "batch",
|
| 31 |
+
"2": "height",
|
| 32 |
+
"3": "width"
|
| 33 |
+
},
|
| 34 |
+
"output": {
|
| 35 |
+
"0": "batch",
|
| 36 |
+
"2": "height",
|
| 37 |
+
"3": "width"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"backend_config": {
|
| 42 |
+
"type": "onnxruntime"
|
| 43 |
+
},
|
| 44 |
+
"calib_config": {}
|
| 45 |
+
}
|
dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/end2end.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c9e8aacaabb98e4849fc59b0d2d3b7358d226ce9c8d4fbcc3edec46606a2ef5e
|
| 3 |
+
size 104516947
|
dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/output_onnxruntime.jpg
ADDED
|
dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/output_pytorch.jpg
ADDED
|
dbnet_resnet50-dcnv2_fpnc_1200e_icdar2015/pipeline.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pipeline": {
|
| 3 |
+
"input": [
|
| 4 |
+
"img"
|
| 5 |
+
],
|
| 6 |
+
"output": [
|
| 7 |
+
"post_output"
|
| 8 |
+
],
|
| 9 |
+
"tasks": [
|
| 10 |
+
{
|
| 11 |
+
"type": "Task",
|
| 12 |
+
"module": "Transform",
|
| 13 |
+
"name": "Preprocess",
|
| 14 |
+
"input": [
|
| 15 |
+
"img"
|
| 16 |
+
],
|
| 17 |
+
"output": [
|
| 18 |
+
"prep_output"
|
| 19 |
+
],
|
| 20 |
+
"transforms": [
|
| 21 |
+
{
|
| 22 |
+
"color_type": "color_ignore_orientation",
|
| 23 |
+
"type": "LoadImageFromFile"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"keep_ratio": true,
|
| 27 |
+
"type": "Resize",
|
| 28 |
+
"size": [
|
| 29 |
+
4068,
|
| 30 |
+
1024
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"type": "Normalize",
|
| 35 |
+
"to_rgb": true,
|
| 36 |
+
"mean": [
|
| 37 |
+
123.675,
|
| 38 |
+
116.28,
|
| 39 |
+
103.53
|
| 40 |
+
],
|
| 41 |
+
"std": [
|
| 42 |
+
58.395,
|
| 43 |
+
57.12,
|
| 44 |
+
57.375
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "Pad",
|
| 49 |
+
"size_divisor": 32
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"type": "DefaultFormatBundle"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"meta_keys": [
|
| 56 |
+
"scale_factor",
|
| 57 |
+
"ori_shape",
|
| 58 |
+
"img_norm_cfg",
|
| 59 |
+
"ori_filename",
|
| 60 |
+
"valid_ratio",
|
| 61 |
+
"flip_direction",
|
| 62 |
+
"img_shape",
|
| 63 |
+
"pad_shape",
|
| 64 |
+
"filename",
|
| 65 |
+
"flip",
|
| 66 |
+
"img_path"
|
| 67 |
+
],
|
| 68 |
+
"type": "Collect",
|
| 69 |
+
"keys": [
|
| 70 |
+
"img"
|
| 71 |
+
]
|
| 72 |
+
}
|
| 73 |
+
]
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"name": "dbnet",
|
| 77 |
+
"type": "Task",
|
| 78 |
+
"module": "Net",
|
| 79 |
+
"is_batched": true,
|
| 80 |
+
"input": [
|
| 81 |
+
"prep_output"
|
| 82 |
+
],
|
| 83 |
+
"output": [
|
| 84 |
+
"infer_output"
|
| 85 |
+
],
|
| 86 |
+
"input_map": {
|
| 87 |
+
"img": "input"
|
| 88 |
+
},
|
| 89 |
+
"output_map": {}
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "Task",
|
| 93 |
+
"module": "mmocr",
|
| 94 |
+
"name": "postprocess",
|
| 95 |
+
"component": "DBHead",
|
| 96 |
+
"params": {},
|
| 97 |
+
"output": [
|
| 98 |
+
"post_output"
|
| 99 |
+
],
|
| 100 |
+
"input": [
|
| 101 |
+
"prep_output",
|
| 102 |
+
"infer_output"
|
| 103 |
+
]
|
| 104 |
+
}
|
| 105 |
+
]
|
| 106 |
+
}
|
| 107 |
+
}
|
dbnet_resnet50-oclip_fpnc_1200e_icdar2015/deploy.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.3.0",
|
| 3 |
+
"task": "TextDetector",
|
| 4 |
+
"models": [
|
| 5 |
+
{
|
| 6 |
+
"name": "dbnet",
|
| 7 |
+
"net": "end2end.onnx",
|
| 8 |
+
"weights": "",
|
| 9 |
+
"backend": "onnxruntime",
|
| 10 |
+
"precision": "FP32",
|
| 11 |
+
"batch_size": 1,
|
| 12 |
+
"dynamic_shape": true
|
| 13 |
+
}
|
| 14 |
+
],
|
| 15 |
+
"customs": []
|
| 16 |
+
}
|
dbnet_resnet50-oclip_fpnc_1200e_icdar2015/detail.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.3.0",
|
| 3 |
+
"codebase": {
|
| 4 |
+
"task": "TextDetection",
|
| 5 |
+
"codebase": "mmocr",
|
| 6 |
+
"version": "1.0.1",
|
| 7 |
+
"pth": "dbnet_resnet50-oclip_1200e_icdar2015_20221102_115917-bde8c87a.pth",
|
| 8 |
+
"config": "dbnet_resnet50-oclip_fpnc_1200e_icdar2015.py"
|
| 9 |
+
},
|
| 10 |
+
"codebase_config": {
|
| 11 |
+
"type": "mmocr",
|
| 12 |
+
"task": "TextDetection"
|
| 13 |
+
},
|
| 14 |
+
"onnx_config": {
|
| 15 |
+
"type": "onnx",
|
| 16 |
+
"export_params": true,
|
| 17 |
+
"keep_initializers_as_inputs": false,
|
| 18 |
+
"opset_version": 11,
|
| 19 |
+
"save_file": "end2end.onnx",
|
| 20 |
+
"input_names": [
|
| 21 |
+
"input"
|
| 22 |
+
],
|
| 23 |
+
"output_names": [
|
| 24 |
+
"output"
|
| 25 |
+
],
|
| 26 |
+
"input_shape": null,
|
| 27 |
+
"optimize": true,
|
| 28 |
+
"dynamic_axes": {
|
| 29 |
+
"input": {
|
| 30 |
+
"0": "batch",
|
| 31 |
+
"2": "height",
|
| 32 |
+
"3": "width"
|
| 33 |
+
},
|
| 34 |
+
"output": {
|
| 35 |
+
"0": "batch",
|
| 36 |
+
"2": "height",
|
| 37 |
+
"3": "width"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"backend_config": {
|
| 42 |
+
"type": "onnxruntime"
|
| 43 |
+
},
|
| 44 |
+
"calib_config": {}
|
| 45 |
+
}
|
dbnet_resnet50-oclip_fpnc_1200e_icdar2015/end2end.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6210c9865d573b6728488f71af2eeef0f8ad0399c4bd8dbf6472915eba63093c
|
| 3 |
+
size 101002098
|
dbnet_resnet50-oclip_fpnc_1200e_icdar2015/output_onnxruntime.jpg
ADDED
|
dbnet_resnet50-oclip_fpnc_1200e_icdar2015/output_pytorch.jpg
ADDED
|
dbnet_resnet50-oclip_fpnc_1200e_icdar2015/pipeline.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pipeline": {
|
| 3 |
+
"input": [
|
| 4 |
+
"img"
|
| 5 |
+
],
|
| 6 |
+
"output": [
|
| 7 |
+
"post_output"
|
| 8 |
+
],
|
| 9 |
+
"tasks": [
|
| 10 |
+
{
|
| 11 |
+
"type": "Task",
|
| 12 |
+
"module": "Transform",
|
| 13 |
+
"name": "Preprocess",
|
| 14 |
+
"input": [
|
| 15 |
+
"img"
|
| 16 |
+
],
|
| 17 |
+
"output": [
|
| 18 |
+
"prep_output"
|
| 19 |
+
],
|
| 20 |
+
"transforms": [
|
| 21 |
+
{
|
| 22 |
+
"color_type": "color_ignore_orientation",
|
| 23 |
+
"type": "LoadImageFromFile"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"keep_ratio": true,
|
| 27 |
+
"type": "Resize",
|
| 28 |
+
"size": [
|
| 29 |
+
4068,
|
| 30 |
+
1024
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"type": "Normalize",
|
| 35 |
+
"to_rgb": true,
|
| 36 |
+
"mean": [
|
| 37 |
+
123.675,
|
| 38 |
+
116.28,
|
| 39 |
+
103.53
|
| 40 |
+
],
|
| 41 |
+
"std": [
|
| 42 |
+
58.395,
|
| 43 |
+
57.12,
|
| 44 |
+
57.375
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "Pad",
|
| 49 |
+
"size_divisor": 32
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"type": "DefaultFormatBundle"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"meta_keys": [
|
| 56 |
+
"scale_factor",
|
| 57 |
+
"img_norm_cfg",
|
| 58 |
+
"ori_shape",
|
| 59 |
+
"img_path",
|
| 60 |
+
"flip",
|
| 61 |
+
"img_shape",
|
| 62 |
+
"ori_filename",
|
| 63 |
+
"flip_direction",
|
| 64 |
+
"pad_shape",
|
| 65 |
+
"filename",
|
| 66 |
+
"valid_ratio"
|
| 67 |
+
],
|
| 68 |
+
"type": "Collect",
|
| 69 |
+
"keys": [
|
| 70 |
+
"img"
|
| 71 |
+
]
|
| 72 |
+
}
|
| 73 |
+
]
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"name": "dbnet",
|
| 77 |
+
"type": "Task",
|
| 78 |
+
"module": "Net",
|
| 79 |
+
"is_batched": true,
|
| 80 |
+
"input": [
|
| 81 |
+
"prep_output"
|
| 82 |
+
],
|
| 83 |
+
"output": [
|
| 84 |
+
"infer_output"
|
| 85 |
+
],
|
| 86 |
+
"input_map": {
|
| 87 |
+
"img": "input"
|
| 88 |
+
},
|
| 89 |
+
"output_map": {}
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "Task",
|
| 93 |
+
"module": "mmocr",
|
| 94 |
+
"name": "postprocess",
|
| 95 |
+
"component": "DBHead",
|
| 96 |
+
"params": {},
|
| 97 |
+
"output": [
|
| 98 |
+
"post_output"
|
| 99 |
+
],
|
| 100 |
+
"input": [
|
| 101 |
+
"prep_output",
|
| 102 |
+
"infer_output"
|
| 103 |
+
]
|
| 104 |
+
}
|
| 105 |
+
]
|
| 106 |
+
}
|
| 107 |
+
}
|
dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/deploy.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.3.0",
|
| 3 |
+
"task": "TextDetector",
|
| 4 |
+
"models": [
|
| 5 |
+
{
|
| 6 |
+
"name": "dbnet",
|
| 7 |
+
"net": "end2end.onnx",
|
| 8 |
+
"weights": "",
|
| 9 |
+
"backend": "onnxruntime",
|
| 10 |
+
"precision": "FP32",
|
| 11 |
+
"batch_size": 1,
|
| 12 |
+
"dynamic_shape": true
|
| 13 |
+
}
|
| 14 |
+
],
|
| 15 |
+
"customs": []
|
| 16 |
+
}
|
dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/detail.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.3.0",
|
| 3 |
+
"codebase": {
|
| 4 |
+
"task": "TextDetection",
|
| 5 |
+
"codebase": "mmocr",
|
| 6 |
+
"version": "1.0.1",
|
| 7 |
+
"pth": "./dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015_20220829_230108-f289bd20.pth",
|
| 8 |
+
"config": "dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015.py"
|
| 9 |
+
},
|
| 10 |
+
"codebase_config": {
|
| 11 |
+
"type": "mmocr",
|
| 12 |
+
"task": "TextDetection"
|
| 13 |
+
},
|
| 14 |
+
"onnx_config": {
|
| 15 |
+
"type": "onnx",
|
| 16 |
+
"export_params": true,
|
| 17 |
+
"keep_initializers_as_inputs": false,
|
| 18 |
+
"opset_version": 11,
|
| 19 |
+
"save_file": "end2end.onnx",
|
| 20 |
+
"input_names": [
|
| 21 |
+
"input"
|
| 22 |
+
],
|
| 23 |
+
"output_names": [
|
| 24 |
+
"output"
|
| 25 |
+
],
|
| 26 |
+
"input_shape": null,
|
| 27 |
+
"optimize": true,
|
| 28 |
+
"dynamic_axes": {
|
| 29 |
+
"input": {
|
| 30 |
+
"0": "batch",
|
| 31 |
+
"2": "height",
|
| 32 |
+
"3": "width"
|
| 33 |
+
},
|
| 34 |
+
"output": {
|
| 35 |
+
"0": "batch",
|
| 36 |
+
"2": "height",
|
| 37 |
+
"3": "width"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"backend_config": {
|
| 42 |
+
"type": "onnxruntime"
|
| 43 |
+
},
|
| 44 |
+
"calib_config": {}
|
| 45 |
+
}
|
dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/end2end.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f4c3eb1e6e22991bd2202b565e9159ab678734f0afe8bc4853c29abe0cc6633
|
| 3 |
+
size 107019052
|
dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/output_onnxruntime.jpg
ADDED
|
dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/output_pytorch.jpg
ADDED
|
dbnetpp_resnet50-dcnv2_fpnc_1200e_icdar2015/pipeline.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pipeline": {
|
| 3 |
+
"input": [
|
| 4 |
+
"img"
|
| 5 |
+
],
|
| 6 |
+
"output": [
|
| 7 |
+
"post_output"
|
| 8 |
+
],
|
| 9 |
+
"tasks": [
|
| 10 |
+
{
|
| 11 |
+
"type": "Task",
|
| 12 |
+
"module": "Transform",
|
| 13 |
+
"name": "Preprocess",
|
| 14 |
+
"input": [
|
| 15 |
+
"img"
|
| 16 |
+
],
|
| 17 |
+
"output": [
|
| 18 |
+
"prep_output"
|
| 19 |
+
],
|
| 20 |
+
"transforms": [
|
| 21 |
+
{
|
| 22 |
+
"color_type": "color_ignore_orientation",
|
| 23 |
+
"type": "LoadImageFromFile"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"keep_ratio": true,
|
| 27 |
+
"type": "Resize",
|
| 28 |
+
"size": [
|
| 29 |
+
4068,
|
| 30 |
+
1024
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"type": "Normalize",
|
| 35 |
+
"to_rgb": true,
|
| 36 |
+
"mean": [
|
| 37 |
+
123.675,
|
| 38 |
+
116.28,
|
| 39 |
+
103.53
|
| 40 |
+
],
|
| 41 |
+
"std": [
|
| 42 |
+
58.395,
|
| 43 |
+
57.12,
|
| 44 |
+
57.375
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "Pad",
|
| 49 |
+
"size_divisor": 32
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"type": "DefaultFormatBundle"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"meta_keys": [
|
| 56 |
+
"flip",
|
| 57 |
+
"ori_filename",
|
| 58 |
+
"valid_ratio",
|
| 59 |
+
"pad_shape",
|
| 60 |
+
"ori_shape",
|
| 61 |
+
"filename",
|
| 62 |
+
"img_norm_cfg",
|
| 63 |
+
"flip_direction",
|
| 64 |
+
"img_shape",
|
| 65 |
+
"img_path",
|
| 66 |
+
"scale_factor"
|
| 67 |
+
],
|
| 68 |
+
"type": "Collect",
|
| 69 |
+
"keys": [
|
| 70 |
+
"img"
|
| 71 |
+
]
|
| 72 |
+
}
|
| 73 |
+
]
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"name": "dbnet",
|
| 77 |
+
"type": "Task",
|
| 78 |
+
"module": "Net",
|
| 79 |
+
"is_batched": true,
|
| 80 |
+
"input": [
|
| 81 |
+
"prep_output"
|
| 82 |
+
],
|
| 83 |
+
"output": [
|
| 84 |
+
"infer_output"
|
| 85 |
+
],
|
| 86 |
+
"input_map": {
|
| 87 |
+
"img": "input"
|
| 88 |
+
},
|
| 89 |
+
"output_map": {}
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "Task",
|
| 93 |
+
"module": "mmocr",
|
| 94 |
+
"name": "postprocess",
|
| 95 |
+
"component": "DBHead",
|
| 96 |
+
"params": {},
|
| 97 |
+
"output": [
|
| 98 |
+
"post_output"
|
| 99 |
+
],
|
| 100 |
+
"input": [
|
| 101 |
+
"prep_output",
|
| 102 |
+
"infer_output"
|
| 103 |
+
]
|
| 104 |
+
}
|
| 105 |
+
]
|
| 106 |
+
}
|
| 107 |
+
}
|
dbnetpp_resnet50_fpnc_1200e_icdar2015/deploy.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.3.0",
|
| 3 |
+
"task": "TextDetector",
|
| 4 |
+
"models": [
|
| 5 |
+
{
|
| 6 |
+
"name": "dbnet",
|
| 7 |
+
"net": "end2end.onnx",
|
| 8 |
+
"weights": "",
|
| 9 |
+
"backend": "onnxruntime",
|
| 10 |
+
"precision": "FP32",
|
| 11 |
+
"batch_size": 1,
|
| 12 |
+
"dynamic_shape": true
|
| 13 |
+
}
|
| 14 |
+
],
|
| 15 |
+
"customs": []
|
| 16 |
+
}
|
dbnetpp_resnet50_fpnc_1200e_icdar2015/detail.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.3.0",
|
| 3 |
+
"codebase": {
|
| 4 |
+
"task": "TextDetection",
|
| 5 |
+
"codebase": "mmocr",
|
| 6 |
+
"version": "1.0.1",
|
| 7 |
+
"pth": "./dbnetpp_resnet50_fpnc_1200e_icdar2015_20221025_185550-013730aa.pth",
|
| 8 |
+
"config": "dbnetpp_resnet50_fpnc_1200e_icdar2015.py"
|
| 9 |
+
},
|
| 10 |
+
"codebase_config": {
|
| 11 |
+
"type": "mmocr",
|
| 12 |
+
"task": "TextDetection"
|
| 13 |
+
},
|
| 14 |
+
"onnx_config": {
|
| 15 |
+
"type": "onnx",
|
| 16 |
+
"export_params": true,
|
| 17 |
+
"keep_initializers_as_inputs": false,
|
| 18 |
+
"opset_version": 11,
|
| 19 |
+
"save_file": "end2end.onnx",
|
| 20 |
+
"input_names": [
|
| 21 |
+
"input"
|
| 22 |
+
],
|
| 23 |
+
"output_names": [
|
| 24 |
+
"output"
|
| 25 |
+
],
|
| 26 |
+
"input_shape": null,
|
| 27 |
+
"optimize": true,
|
| 28 |
+
"dynamic_axes": {
|
| 29 |
+
"input": {
|
| 30 |
+
"0": "batch",
|
| 31 |
+
"2": "height",
|
| 32 |
+
"3": "width"
|
| 33 |
+
},
|
| 34 |
+
"output": {
|
| 35 |
+
"0": "batch",
|
| 36 |
+
"2": "height",
|
| 37 |
+
"3": "width"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
},
|
| 41 |
+
"backend_config": {
|
| 42 |
+
"type": "onnxruntime"
|
| 43 |
+
},
|
| 44 |
+
"calib_config": {}
|
| 45 |
+
}
|
dbnetpp_resnet50_fpnc_1200e_icdar2015/end2end.onnx
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08d2efc39ed9e0fcaeddc4963b1e5e25f08aaf51722db3793ffbb2b57e5450bc
|
| 3 |
+
size 103422850
|
dbnetpp_resnet50_fpnc_1200e_icdar2015/output_onnxruntime.jpg
ADDED
|
dbnetpp_resnet50_fpnc_1200e_icdar2015/output_pytorch.jpg
ADDED
|
dbnetpp_resnet50_fpnc_1200e_icdar2015/pipeline.json
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"pipeline": {
|
| 3 |
+
"input": [
|
| 4 |
+
"img"
|
| 5 |
+
],
|
| 6 |
+
"output": [
|
| 7 |
+
"post_output"
|
| 8 |
+
],
|
| 9 |
+
"tasks": [
|
| 10 |
+
{
|
| 11 |
+
"type": "Task",
|
| 12 |
+
"module": "Transform",
|
| 13 |
+
"name": "Preprocess",
|
| 14 |
+
"input": [
|
| 15 |
+
"img"
|
| 16 |
+
],
|
| 17 |
+
"output": [
|
| 18 |
+
"prep_output"
|
| 19 |
+
],
|
| 20 |
+
"transforms": [
|
| 21 |
+
{
|
| 22 |
+
"color_type": "color_ignore_orientation",
|
| 23 |
+
"type": "LoadImageFromFile"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"keep_ratio": true,
|
| 27 |
+
"type": "Resize",
|
| 28 |
+
"size": [
|
| 29 |
+
4068,
|
| 30 |
+
1024
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"type": "Normalize",
|
| 35 |
+
"to_rgb": true,
|
| 36 |
+
"mean": [
|
| 37 |
+
123.675,
|
| 38 |
+
116.28,
|
| 39 |
+
103.53
|
| 40 |
+
],
|
| 41 |
+
"std": [
|
| 42 |
+
58.395,
|
| 43 |
+
57.12,
|
| 44 |
+
57.375
|
| 45 |
+
]
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"type": "Pad",
|
| 49 |
+
"size_divisor": 32
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"type": "DefaultFormatBundle"
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"meta_keys": [
|
| 56 |
+
"ori_filename",
|
| 57 |
+
"flip_direction",
|
| 58 |
+
"img_shape",
|
| 59 |
+
"img_path",
|
| 60 |
+
"pad_shape",
|
| 61 |
+
"valid_ratio",
|
| 62 |
+
"scale_factor",
|
| 63 |
+
"ori_shape",
|
| 64 |
+
"flip",
|
| 65 |
+
"filename",
|
| 66 |
+
"img_norm_cfg"
|
| 67 |
+
],
|
| 68 |
+
"type": "Collect",
|
| 69 |
+
"keys": [
|
| 70 |
+
"img"
|
| 71 |
+
]
|
| 72 |
+
}
|
| 73 |
+
]
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"name": "dbnet",
|
| 77 |
+
"type": "Task",
|
| 78 |
+
"module": "Net",
|
| 79 |
+
"is_batched": true,
|
| 80 |
+
"input": [
|
| 81 |
+
"prep_output"
|
| 82 |
+
],
|
| 83 |
+
"output": [
|
| 84 |
+
"infer_output"
|
| 85 |
+
],
|
| 86 |
+
"input_map": {
|
| 87 |
+
"img": "input"
|
| 88 |
+
},
|
| 89 |
+
"output_map": {}
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"type": "Task",
|
| 93 |
+
"module": "mmocr",
|
| 94 |
+
"name": "postprocess",
|
| 95 |
+
"component": "DBHead",
|
| 96 |
+
"params": {},
|
| 97 |
+
"output": [
|
| 98 |
+
"post_output"
|
| 99 |
+
],
|
| 100 |
+
"input": [
|
| 101 |
+
"prep_output",
|
| 102 |
+
"infer_output"
|
| 103 |
+
]
|
| 104 |
+
}
|
| 105 |
+
]
|
| 106 |
+
}
|
| 107 |
+
}
|