Ensure init is called

This commit is contained in:
Nicolas Mowen 2025-04-18 09:08:36 -06:00
parent 6f4898e5c0
commit ffcf449f3a
2 changed files with 3 additions and 0 deletions

View File

@ -31,6 +31,8 @@ class ONNXDetector(DetectionApi):
type_key = DETECTOR_KEY type_key = DETECTOR_KEY
def __init__(self, detector_config: ONNXDetectorConfig): def __init__(self, detector_config: ONNXDetectorConfig):
super().__init__(detector_config)
try: try:
import onnxruntime as ort import onnxruntime as ort

View File

@ -38,6 +38,7 @@ class OvDetector(DetectionApi):
] ]
def __init__(self, detector_config: OvDetectorConfig): def __init__(self, detector_config: OvDetectorConfig):
super().__init__(detector_config)
self.ov_core = ov.Core() self.ov_core = ov.Core()
self.ov_model_type = detector_config.model.model_type self.ov_model_type = detector_config.model.model_type