narugo's picture
Upload models
9357e07
{
"pipeline": {
"input": [
"img"
],
"output": [
"post_output"
],
"tasks": [
{
"type": "Task",
"module": "Transform",
"name": "Preprocess",
"input": [
"img"
],
"output": [
"prep_output"
],
"transforms": [
{
"color_type": "color_ignore_orientation",
"type": "LoadImageFromFile"
},
{
"keep_ratio": true,
"type": "Resize",
"size": [
4068,
1024
]
},
{
"type": "Normalize",
"to_rgb": true,
"mean": [
123.675,
116.28,
103.53
],
"std": [
58.395,
57.12,
57.375
]
},
{
"type": "Pad",
"size_divisor": 32
},
{
"type": "DefaultFormatBundle"
},
{
"meta_keys": [
"flip",
"ori_filename",
"valid_ratio",
"pad_shape",
"ori_shape",
"filename",
"img_norm_cfg",
"flip_direction",
"img_shape",
"img_path",
"scale_factor"
],
"type": "Collect",
"keys": [
"img"
]
}
]
},
{
"name": "dbnet",
"type": "Task",
"module": "Net",
"is_batched": true,
"input": [
"prep_output"
],
"output": [
"infer_output"
],
"input_map": {
"img": "input"
},
"output_map": {}
},
{
"type": "Task",
"module": "mmocr",
"name": "postprocess",
"component": "DBHead",
"params": {},
"output": [
"post_output"
],
"input": [
"prep_output",
"infer_output"
]
}
]
}
}