mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
fix sdk export pipeline.json (#1391)
This commit is contained in:
parent
115ca470dd
commit
a59b17259d
@ -245,8 +245,9 @@ def get_pipeline(deploy_cfg: mmengine.Config, model_cfg: mmengine.Config,
|
|||||||
task = get_task_type(deploy_cfg)
|
task = get_task_type(deploy_cfg)
|
||||||
input_names = preprocess['input']
|
input_names = preprocess['input']
|
||||||
output_names = postprocess['output']
|
output_names = postprocess['output']
|
||||||
if task == Task.CLASSIFICATION or task == Task.SUPER_RESOLUTION \
|
if task in [
|
||||||
or Task.VIDEO_RECOGNITION:
|
Task.CLASSIFICATION, Task.SUPER_RESOLUTION, Task.VIDEO_RECOGNITION
|
||||||
|
]:
|
||||||
postprocess['input'] = infer_info['output']
|
postprocess['input'] = infer_info['output']
|
||||||
else:
|
else:
|
||||||
postprocess['input'] = preprocess['output'] + infer_info['output']
|
postprocess['input'] = preprocess['output'] + infer_info['output']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user