mirror of
https://github.com/open-mmlab/mmdeploy.git
synced 2025-01-14 08:09:43 +08:00
fix inference_model api
This commit is contained in:
parent
a2f82874bb
commit
0aad6359e2
@ -48,6 +48,6 @@ def inference_model(model_cfg: Union[str, mmengine.Config],
|
||||
model_inputs, _ = task_processor.create_input(img, input_shape)
|
||||
|
||||
with torch.no_grad():
|
||||
result = model.test_step([model_inputs])
|
||||
result = model.test_step(model_inputs)
|
||||
|
||||
return result
|
||||
|
Loading…
x
Reference in New Issue
Block a user