This commit is contained in:
Nicolas Mowen 2025-09-17 14:49:39 -06:00
parent d1f4e73fe4
commit adc786e41f
2 changed files with 2 additions and 2 deletions

View File

@ -190,7 +190,7 @@ class OpenVINOModelRunner(BaseModelRunner):
self.input_tensor = ov.Tensor(input_element_type, input_shape)
except RuntimeError:
# model is complex and has dynamic shape
raise
pass
def get_input_names(self) -> list[str]:
"""Get input names for the model."""

View File

@ -43,7 +43,7 @@ class OvDetector(DetectionApi):
self.w = detector_config.model.width
self.runner = OpenVINOModelRunner(
model_path=detector_config.model.path, device=detector_config.device
model_path=detector_config.model.path, device=detector_config.device, complex_model=False
)
# For dfine models, also pre-allocate target sizes tensor