Upload dbnetpp_resnet50-oclip_fpnc_1200e_icdar2015/pipeline.json with huggingface_hub
Browse files
dbnetpp_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 |
+
"flip_direction",
|
58 |
+
"img_norm_cfg",
|
59 |
+
"valid_ratio",
|
60 |
+
"flip",
|
61 |
+
"pad_shape",
|
62 |
+
"img_shape",
|
63 |
+
"img_path",
|
64 |
+
"ori_shape",
|
65 |
+
"ori_filename",
|
66 |
+
"filename"
|
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 |
+
}
|