From 2933d7f779e957abfc3eec99cbedc880a50cfa16 Mon Sep 17 00:00:00 2001 From: Dom <168790843+firestar5683@users.noreply.github.com> Date: Mon, 9 Nov 2026 13:58:25 -0600 Subject: [PATCH] Initialize stop-sign verifier state in reset fixture --- .../starpilot/speed_limits/vision/tests/test_stop_signs.py | 4 ++++ prebuilt.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openpilot/starpilot/speed_limits/vision/tests/test_stop_signs.py b/openpilot/starpilot/speed_limits/vision/tests/test_stop_signs.py index 66bcfe1582..ca6df6dbe2 100644 --- a/openpilot/starpilot/speed_limits/vision/tests/test_stop_signs.py +++ b/openpilot/starpilot/speed_limits/vision/tests/test_stop_signs.py @@ -6,7 +6,9 @@ from unittest.mock import patch import numpy as np from openpilot.starpilot.speed_limits.vision.traffic_signs import TrafficSignModelCore as VisionModelCore +from openpilot.starpilot.speed_limits.vision.speed_face import StopFaceVerifier from openpilot.starpilot.speed_limits.vision.stop_signs import StopDetection, SignDetectorOutputs, decode_stop_signs +from openpilot.starpilot.speed_limits.vision.tests import _identity_fixture as identity_fixture class TestStopSigns(unittest.TestCase): @@ -48,6 +50,8 @@ class TestStopSigns(unittest.TestCase): def test_reset_and_invalid_new_frame_clear_stop_detections(self): core = VisionModelCore.__new__(VisionModelCore) core.history = deque() + core.net = SimpleNamespace(rgb256=None) + core._stop_face_filter = StopFaceVerifier(identity_fixture.Net('aux')) core.stop_detections = (StopDetection(.9, (10, 10, 30, 30)),) core.reset() self.assertEqual(core.stop_detections, ()) diff --git a/prebuilt.json b/prebuilt.json index a709ea3883..d0ccabc617 100644 --- a/prebuilt.json +++ b/prebuilt.json @@ -1 +1 @@ -{"protected_inventory_sha256": "4f2793b520dfe1cf29afef335e3cdcb47a8cc0f45db6c6ca13df1d94abd8c0ca", "schema_version": 1} +{"protected_inventory_sha256": "3d47e789d99238a97b8545ff5c6d8e4b93cfc4db337783a531e10e1e7d472efd", "schema_version": 1}