Skip to content

Commit

Permalink
add is_batched argument to pipeline.json (#1528)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllentDan authored and lvhan028 committed Mar 1, 2023
1 parent 11ca21a commit bda0960
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mmdeploy/backend/sdk/export_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit bda0960

Please sign in to comment.