From abcd40f88b5f2790e3f5ce1a123fe69ff492bec6 Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Wed, 11 Feb 2026 17:54:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(aiot):=20=E9=99=8D=E4=BD=8EYOLO=E7=BD=AE?= =?UTF-8?q?=E4=BF=A1=E5=BA=A6=E9=98=88=E5=80=BC(0.5=E2=86=920.4)=E5=87=8F?= =?UTF-8?q?=E5=B0=91=E7=A6=BB=E5=B2=97=E8=AF=AF=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 人员在岗但检测置信度低于0.5被过滤,导致算法误判"无人"触发离岗告警。 将默认阈值降至0.4,同步更新环境变量默认值。 Co-Authored-By: Claude Sonnet 4.5 --- config/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/settings.py b/config/settings.py index 61673f6..28fec69 100644 --- a/config/settings.py +++ b/config/settings.py @@ -117,7 +117,7 @@ class InferenceConfig: input_width: int = 480 input_height: int = 480 batch_size: int = 1 - conf_threshold: float = 0.5 + conf_threshold: float = 0.4 nms_threshold: float = 0.45 device_id: int = 0 fp16_mode: bool = True @@ -273,7 +273,7 @@ class Settings: input_width=int(os.getenv("INPUT_WIDTH", "480")), input_height=int(os.getenv("INPUT_HEIGHT", "480")), batch_size=int(os.getenv("BATCH_SIZE", "4")), - conf_threshold=float(os.getenv("CONF_THRESHOLD", "0.5")), + conf_threshold=float(os.getenv("CONF_THRESHOLD", "0.4")), nms_threshold=float(os.getenv("NMS_THRESHOLD", "0.45")), )