From 94144a28d6994666ba728ae2dd18dba89713e158 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 25 Aug 2026 17:14:22 -0400 Subject: [PATCH] fix(detection): don't default tiny80.sod to face-only architecture Unrecognized .sod filenames fell through to the :face architecture fallback, so the tiny80 COCO-80 object model was silently running as a face-only detector. Add an exact-match case routing tiny80.sod to :tiny80. --- src/video/sod_detection.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/sod_detection.c b/src/video/sod_detection.c index 1ee00ebb5..af9ffeb43 100644 --- a/src/video/sod_detection.c +++ b/src/video/sod_detection.c @@ -223,6 +223,10 @@ detection_model_t load_sod_model(const char *model_path, float threshold) { arch = ":voc"; log_info("Detected VOC model by exact filename match, using :voc architecture: %s", filename); } + else if (strcmp(filename, "tiny80.sod") == 0) { + arch = ":tiny80"; + log_info("Detected COCO-80 model by exact filename match, using :tiny80 architecture: %s", filename); + } else { // If we couldn't determine the architecture, default to face for .sod files // This is a fallback to ensure face detection works even if the filename doesn't contain "face"