mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
add is_batched argument to pipeline.json (#1528)
This commit is contained in:
parent
84ee45bc35
commit
acae7a756e
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user