Skip to content

Commit

Permalink
fix inference_model api
Browse files Browse the repository at this point in the history
  • Loading branch information
irexyc committed Sep 6, 2022
1 parent a2f8287 commit 0aad635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mmdeploy/apis/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0aad635

Please sign in to comment.