{ "pipeline": { "input": [ "img" ], "output": [ "post_output" ], "tasks": [ { "type": "Task", "module": "Transform", "name": "Preprocess", "input": [ "img" ], "output": [ "prep_output" ], "transforms": [ { "type": "LoadImageFromFile" }, { "type": "Resize", "keep_ratio": false, "size": [ 416, 416 ] }, { "type": "Normalize", "mean": [ 123.675, 116.28, 103.53 ], "std": [ 58.395, 57.12, 57.375 ], "to_rgb": true }, { "type": "ImageToTensor", "keys": [ "img" ] }, { "type": "Collect", "keys": [ "img" ], "meta_keys": [ "img_shape", "pad_shape", "ori_shape", "img_norm_cfg", "scale_factor" ] } ] }, { "name": "depthwiseseparableaspp", "type": "Task", "module": "Net", "is_batched": false, "input": [ "prep_output" ], "output": [ "infer_output" ], "input_map": { "img": "input" }, "output_map": {} }, { "type": "Task", "module": "mmseg", "name": "postprocess", "component": "ResizeMask", "params": { "type": "DepthwiseSeparableASPPHead", "in_channels": 320, "in_index": 3, "channels": 128, "dilations": [ 1, 12, 24, 36 ], "c1_in_channels": 24, "c1_channels": 12, "dropout_ratio": 0.1, "num_classes": 3, "norm_cfg": { "type": "SyncBN", "requires_grad": true }, "align_corners": false, "loss_decode": { "type": "CrossEntropyLoss", "use_sigmoid": false, "loss_weight": 1.0 }, "with_argmax": true }, "output": [ "post_output" ], "input": [ "prep_output", "infer_output" ] } ] } }