From 3ff2d1e727392733fe23cd04db09999c153958a6 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Tue, 21 Jul 2026 17:05:09 -0500 Subject: [PATCH] backend tweaks --- frigate/config/config.py | 2 +- frigate/detectors/detector_config.py | 2 +- frigate/util/model.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frigate/config/config.py b/frigate/config/config.py index b450d26e91..470ce15a2a 100644 --- a/frigate/config/config.py +++ b/frigate/config/config.py @@ -640,7 +640,7 @@ class FrigateConfig(FrigateBaseModel): # set notifications state self.notifications.enabled_in_config = self.notifications.enabled - # validate genai: each role (tools, vision, embeddings) at most once + # validate genai: each role (chat, descriptions, embeddings) at most once role_to_name: dict[GenAIRoleEnum, str] = {} for name, genai_cfg in self.genai.items(): for role in genai_cfg.roles: diff --git a/frigate/detectors/detector_config.py b/frigate/detectors/detector_config.py index 788fb58a79..52d75ff8f7 100644 --- a/frigate/detectors/detector_config.py +++ b/frigate/detectors/detector_config.py @@ -93,7 +93,7 @@ class ModelConfig(BaseModel): model_type: ModelTypeEnum = Field( default=ModelTypeEnum.ssd, title="Object Detection Model Type", - description="Detector model architecture type (ssd, yolox, yolonas) used by some detectors for optimization.", + description="Detector model architecture type (ssd, yolox, yolonas, yolo-generic, rfdetr, dfine) used by some detectors for optimization.", ) _merged_labelmap: dict[int, str] | None = PrivateAttr() _colormap: dict[int, tuple[int, int, int]] = PrivateAttr() diff --git a/frigate/util/model.py b/frigate/util/model.py index 338303e2d7..19e4f68f1d 100644 --- a/frigate/util/model.py +++ b/frigate/util/model.py @@ -326,7 +326,7 @@ def get_ort_providers( { "device_id": device_id, "trt_fp16_enable": requires_fp16 - and os.environ.get("USE_FP_16", "True") != "False", + and os.environ.get("USE_FP16", "True") != "False", "trt_timing_cache_enable": True, "trt_engine_cache_enable": True, "trt_timing_cache_path": os.path.join(