fix inference_model api

This commit is contained in:
Xin Chen 2022-09-06 19:02:45 +08:00
parent a2f82874bb
commit 0aad6359e2

View File

@ -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