add is_batched argument to pipeline.json (#1528)

This commit is contained in:
AllentDan 2022-12-20 17:37:47 +08:00 committed by GitHub
parent 84ee45bc35
commit acae7a756e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,10 +148,12 @@ def get_inference_info(deploy_cfg: mmengine.Config, model_cfg: mmengine.Config,
input_name = input_names[0] if input_names else 'input'
input_map = dict(img=input_name)
output_map = {}
is_batched = is_dynamic_batch(deploy_cfg, input_name=input_map['img'])
return_dict = dict(
name=name,
type='Task',
module='Net',
is_batched=is_batched,
input=['prep_output'],
output=['infer_output'],
input_map=input_map,