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": [
"scale_factor",
"img_norm_cfg",
"ori_shape",
"img_path",
"flip",
"img_shape",
"ori_filename",
"flip_direction",
"pad_shape",
"filename",
"valid_ratio"
],
"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"
]
}
]
}
}