mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-03 09:45:22 +03:00
fixed code formatting
This commit is contained in:
parent
3fa174eca4
commit
3f524da4ca
@ -21,7 +21,7 @@ def create_detector(det_type: DetectorTypeEnum, **kwargs):
|
|||||||
_api_types = {
|
_api_types = {
|
||||||
DetectorTypeEnum.cpu: CpuTfl,
|
DetectorTypeEnum.cpu: CpuTfl,
|
||||||
DetectorTypeEnum.edgetpu: EdgeTpuTfl,
|
DetectorTypeEnum.edgetpu: EdgeTpuTfl,
|
||||||
DetectorTypeEnum.openvino: OvDetector
|
DetectorTypeEnum.openvino: OvDetector,
|
||||||
}
|
}
|
||||||
|
|
||||||
if det_type == DetectorTypeEnum.cpu:
|
if det_type == DetectorTypeEnum.cpu:
|
||||||
|
|||||||
@ -52,7 +52,12 @@ class LocalObjectDetector(ObjectDetector):
|
|||||||
else:
|
else:
|
||||||
self.input_transform = None
|
self.input_transform = None
|
||||||
|
|
||||||
self.detect_api = create_detector(det_type, det_device=det_device, model_config=model_config, num_threads=num_threads)
|
self.detect_api = create_detector(
|
||||||
|
det_type,
|
||||||
|
det_device=det_device,
|
||||||
|
model_config=model_config,
|
||||||
|
num_threads=num_threads,
|
||||||
|
)
|
||||||
|
|
||||||
def detect(self, tensor_input, threshold=0.4):
|
def detect(self, tensor_input, threshold=0.4):
|
||||||
detections = []
|
detections = []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user