From 4f9a193782b82218054c794bc5c09117e74816f1 Mon Sep 17 00:00:00 2001 From: jim800121chen Date: Thu, 16 Apr 2026 15:01:25 +0800 Subject: [PATCH] =?UTF-8?q?chore(local-tool):=20=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=20FPS/latency/accuracy=20=E9=A0=90=E4=BC=B0?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用者要求拿掉 FPS 預估數字(未經實測,不準確)。 - docs/LOCAL-TOOL-SPEC.md: 模型表格移除 FPS 欄位 - server/data/models.json: 7 個模型全部移除 fps / latencyMs / accuracy 欄位 前端 model-detail / model-card 有讀這些欄位的 UI,移除後會顯示 — 或不顯示 該列,不需要額外前端改動(已有 null/undefined fallback)。 Co-Authored-By: Claude Opus 4.6 (1M context) --- local-tool/docs/LOCAL-TOOL-SPEC.md | 22 ++-- local-tool/server/data/models.json | 201 ++++++++++++++++++++++------- 2 files changed, 163 insertions(+), 60 deletions(-) diff --git a/local-tool/docs/LOCAL-TOOL-SPEC.md b/local-tool/docs/LOCAL-TOOL-SPEC.md index 914e2e5..7444038 100644 --- a/local-tool/docs/LOCAL-TOOL-SPEC.md +++ b/local-tool/docs/LOCAL-TOOL-SPEC.md @@ -126,20 +126,20 @@ visionA Local Tool 是 Kneron KL520 / KL720 邊緣 AI 推論硬體的**本機桌 ### KL520(4 個) -| 模型 ID | 名稱 | 任務 | 輸入 | FPS | -|---------|------|------|------|-----| -| kl520-yolov5-detection | YOLOv5 Detection | 物件偵測 | 640×640 | ~20 | -| kl520-fcos-detection | FCOS Detection | 物件偵測 | 512×512 | ~22 | -| kl520-ssd-face-detection | SSD Face Detection | 人臉偵測 | 320×240 | ~100 | -| kl520-tiny-yolov3 | Tiny YOLOv3 | 物件偵測 | 416×416 | ~28 | +| 模型 ID | 名稱 | 任務 | 輸入 | +|---------|------|------|------| +| kl520-yolov5-detection | YOLOv5 Detection | 物件偵測 | 640×640 | +| kl520-fcos-detection | FCOS Detection | 物件偵測 | 512×512 | +| kl520-ssd-face-detection | SSD Face Detection | 人臉偵測 | 320×240 | +| kl520-tiny-yolov3 | Tiny YOLOv3 | 物件偵測 | 416×416 | ### KL720(3 個) -| 模型 ID | 名稱 | 任務 | 輸入 | FPS | -|---------|------|------|------|-----| -| kl720-yolov5-detection | YOLOv5 Detection | 物件偵測 | 640×640 | ~33 | -| kl720-resnet18-classification | ResNet18 Classification | 分類(1000 類)| 224×224 | ~100 | -| kl720-fcos-detection | FCOS Detection | 物件偵測 | 512×512 | ~33 | +| 模型 ID | 名稱 | 任務 | 輸入 | +|---------|------|------|------| +| kl720-yolov5-detection | YOLOv5 Detection | 物件偵測 | 640×640 | +| kl720-resnet18-classification | ResNet18 Classification | 分類(1000 類)| 224×224 | +| kl720-fcos-detection | FCOS Detection | 物件偵測 | 512×512 | --- diff --git a/local-tool/server/data/models.json b/local-tool/server/data/models.json index c957aec..34c3416 100644 --- a/local-tool/server/data/models.json +++ b/local-tool/server/data/models.json @@ -5,16 +5,32 @@ "description": "YOLOv5 object detection model compiled for Kneron KL520. No upsample variant optimized for NPU inference at 640x640 resolution.", "thumbnail": "/images/models/yolov5-det.png", "taskType": "object_detection", - "categories": ["general", "multi-object"], + "categories": [ + "general", + "multi-object" + ], "framework": "NEF", - "inputSize": {"width": 640, "height": 640}, + "inputSize": { + "width": 640, + "height": 640 + }, "modelSize": 7200000, "quantization": "INT8", - "accuracy": 0.80, - "latencyMs": 50, - "fps": 20, - "supportedHardware": ["KL520"], - "labels": ["person", "bicycle", "car", "motorcycle", "airplane", "bus", "train", "truck", "boat", "traffic light"], + "supportedHardware": [ + "KL520" + ], + "labels": [ + "person", + "bicycle", + "car", + "motorcycle", + "airplane", + "bus", + "train", + "truck", + "boat", + "traffic light" + ], "filePath": "data/nef/kl520/kl520_20005_yolov5-noupsample_w640h640.nef", "version": "1.0.0", "author": "Kneron", @@ -28,16 +44,32 @@ "description": "FCOS (Fully Convolutional One-Stage) object detection with DarkNet53s backbone, compiled for KL520. Anchor-free detection at 512x512.", "thumbnail": "/images/models/fcos-det.png", "taskType": "object_detection", - "categories": ["general", "multi-object"], + "categories": [ + "general", + "multi-object" + ], "framework": "NEF", - "inputSize": {"width": 512, "height": 512}, + "inputSize": { + "width": 512, + "height": 512 + }, "modelSize": 8900000, "quantization": "INT8", - "accuracy": 0.78, - "latencyMs": 45, - "fps": 22, - "supportedHardware": ["KL520"], - "labels": ["person", "bicycle", "car", "motorcycle", "airplane", "bus", "train", "truck", "boat", "traffic light"], + "supportedHardware": [ + "KL520" + ], + "labels": [ + "person", + "bicycle", + "car", + "motorcycle", + "airplane", + "bus", + "train", + "truck", + "boat", + "traffic light" + ], "filePath": "data/nef/kl520/kl520_20004_fcos-drk53s_w512h512.nef", "version": "1.0.0", "author": "Kneron", @@ -51,16 +83,23 @@ "description": "SSD-based face detection with landmark localization, compiled for KL520. Lightweight model suitable for face detection and alignment tasks.", "thumbnail": "/images/models/ssd-face.png", "taskType": "object_detection", - "categories": ["face", "security"], + "categories": [ + "face", + "security" + ], "framework": "NEF", - "inputSize": {"width": 320, "height": 240}, + "inputSize": { + "width": 320, + "height": 240 + }, "modelSize": 1000000, "quantization": "INT8", - "accuracy": 0.85, - "latencyMs": 10, - "fps": 100, - "supportedHardware": ["KL520"], - "labels": ["face"], + "supportedHardware": [ + "KL520" + ], + "labels": [ + "face" + ], "filePath": "data/nef/kl520/kl520_ssd_fd_lm.nef", "version": "1.0.0", "author": "Kneron", @@ -74,16 +113,32 @@ "description": "Tiny YOLOv3 object detection model compiled for KL520. Compact and fast model for general-purpose multi-object detection on edge devices.", "thumbnail": "/images/models/tiny-yolov3.png", "taskType": "object_detection", - "categories": ["general", "multi-object"], + "categories": [ + "general", + "multi-object" + ], "framework": "NEF", - "inputSize": {"width": 416, "height": 416}, + "inputSize": { + "width": 416, + "height": 416 + }, "modelSize": 9400000, "quantization": "INT8", - "accuracy": 0.75, - "latencyMs": 35, - "fps": 28, - "supportedHardware": ["KL520"], - "labels": ["person", "bicycle", "car", "motorcycle", "airplane", "bus", "train", "truck", "boat", "traffic light"], + "supportedHardware": [ + "KL520" + ], + "labels": [ + "person", + "bicycle", + "car", + "motorcycle", + "airplane", + "bus", + "train", + "truck", + "boat", + "traffic light" + ], "filePath": "data/nef/kl520/kl520_tiny_yolo_v3.nef", "version": "1.0.0", "author": "Kneron", @@ -97,16 +152,32 @@ "description": "YOLOv5 object detection model compiled for Kneron KL720. No upsample variant optimized for KL720 NPU inference at 640x640 resolution with USB 3.0 throughput.", "thumbnail": "/images/models/yolov5-det.png", "taskType": "object_detection", - "categories": ["general", "multi-object"], + "categories": [ + "general", + "multi-object" + ], "framework": "NEF", - "inputSize": {"width": 640, "height": 640}, + "inputSize": { + "width": 640, + "height": 640 + }, "modelSize": 10168348, "quantization": "INT8", - "accuracy": 0.82, - "latencyMs": 30, - "fps": 33, - "supportedHardware": ["KL720"], - "labels": ["person", "bicycle", "car", "motorcycle", "airplane", "bus", "train", "truck", "boat", "traffic light"], + "supportedHardware": [ + "KL720" + ], + "labels": [ + "person", + "bicycle", + "car", + "motorcycle", + "airplane", + "bus", + "train", + "truck", + "boat", + "traffic light" + ], "filePath": "data/nef/kl720/kl720_20005_yolov5-noupsample_w640h640.nef", "version": "1.0.0", "author": "Kneron", @@ -120,16 +191,32 @@ "description": "ResNet18-based image classification compiled for KL720. Supports 1000 ImageNet categories with fast inference via USB 3.0.", "thumbnail": "/images/models/imagenet-cls.png", "taskType": "classification", - "categories": ["general", "image-classification"], + "categories": [ + "general", + "image-classification" + ], "framework": "NEF", - "inputSize": {"width": 224, "height": 224}, + "inputSize": { + "width": 224, + "height": 224 + }, "modelSize": 12826804, "quantization": "INT8", - "accuracy": 0.78, - "latencyMs": 10, - "fps": 100, - "supportedHardware": ["KL720"], - "labels": ["airplane", "automobile", "bird", "cat", "deer", "dog", "frog", "horse", "ship", "truck"], + "supportedHardware": [ + "KL720" + ], + "labels": [ + "airplane", + "automobile", + "bird", + "cat", + "deer", + "dog", + "frog", + "horse", + "ship", + "truck" + ], "filePath": "data/nef/kl720/kl720_20001_resnet18_w224h224.nef", "version": "1.0.0", "author": "Kneron", @@ -143,16 +230,32 @@ "description": "FCOS (Fully Convolutional One-Stage) object detection with DarkNet53s backbone, compiled for KL720. Anchor-free detection at 512x512.", "thumbnail": "/images/models/fcos-det.png", "taskType": "object_detection", - "categories": ["general", "multi-object"], + "categories": [ + "general", + "multi-object" + ], "framework": "NEF", - "inputSize": {"width": 512, "height": 512}, + "inputSize": { + "width": 512, + "height": 512 + }, "modelSize": 13004640, "quantization": "INT8", - "accuracy": 0.80, - "latencyMs": 30, - "fps": 33, - "supportedHardware": ["KL720"], - "labels": ["person", "bicycle", "car", "motorcycle", "airplane", "bus", "train", "truck", "boat", "traffic light"], + "supportedHardware": [ + "KL720" + ], + "labels": [ + "person", + "bicycle", + "car", + "motorcycle", + "airplane", + "bus", + "train", + "truck", + "boat", + "traffic light" + ], "filePath": "data/nef/kl720/kl720_20004_fcos-drk53s_w512h512.nef", "version": "1.0.0", "author": "Kneron",