mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
Ensure init is called
This commit is contained in:
parent
6f4898e5c0
commit
ffcf449f3a
@ -31,6 +31,8 @@ class ONNXDetector(DetectionApi):
|
||||
type_key = DETECTOR_KEY
|
||||
|
||||
def __init__(self, detector_config: ONNXDetectorConfig):
|
||||
super().__init__(detector_config)
|
||||
|
||||
try:
|
||||
import onnxruntime as ort
|
||||
|
||||
|
||||
@ -38,6 +38,7 @@ class OvDetector(DetectionApi):
|
||||
]
|
||||
|
||||
def __init__(self, detector_config: OvDetectorConfig):
|
||||
super().__init__(detector_config)
|
||||
self.ov_core = ov.Core()
|
||||
self.ov_model_type = detector_config.model.model_type
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user