Update model_zoo.py

This commit is contained in:
신관준
2022-01-11 03:06:20 +09:00
committed by GitHub
parent 983af548d1
commit 11590781c4

View File

@@ -49,7 +49,7 @@ class ModelRouter:
self.onnx_file = onnx_file
def get_model(self, **kwargs):
session = onnxruntime.InferenceSession(self.onnx_file, **kwargs)
session = PickableInferenceSession(self.onnx_file, **kwargs)
print(f'Applied providers: {session._providers}, with options: {session._provider_options}')
input_cfg = session.get_inputs()[0]
input_shape = input_cfg.shape