From bbf0fc8324eeb5acaef26ce48b773f0f56818f03 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Mon, 16 Aug 2021 07:39:20 -0500 Subject: [PATCH] use CPu detector by default --- frigate/config.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frigate/config.py b/frigate/config.py index c68d6df93..e5fdff5d9 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -26,7 +26,7 @@ DEFAULT_TIME_FORMAT = "%m/%d/%Y %H:%M:%S" FRIGATE_ENV_VARS = {k: v for k, v in os.environ.items() if k.startswith("FRIGATE_")} DEFAULT_TRACKED_OBJECTS = ["person"] -DEFAULT_DETECTORS = {"coral": {"type": "edgetpu", "device": "usb"}} +DEFAULT_DETECTORS = {"cpu": {"type": "cpu"}} class DetectorTypeEnum(str, Enum): @@ -35,9 +35,7 @@ class DetectorTypeEnum(str, Enum): class DetectorConfig(BaseModel): - type: DetectorTypeEnum = Field( - default=DetectorTypeEnum.edgetpu, title="Detector Type" - ) + type: DetectorTypeEnum = Field(default=DetectorTypeEnum.cpu, title="Detector Type") device: str = Field(default="usb", title="Device Type") num_threads: int = Field(default=3, title="Number of detection threads")