From 15b214268a158a48b95c2cfe95c2959982435123 Mon Sep 17 00:00:00 2001 From: wuzhao Date: Mon, 9 Feb 2026 18:05:00 +0800 Subject: [PATCH 1/7] =?UTF-8?q?=E6=96=B0=E5=A2=9Egitignore=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..15d572f --- /dev/null +++ b/.gitignore @@ -0,0 +1,55 @@ +# OS / Editor +.DS_Store +Thumbs.db +.idea/ +.vscode/ + +# Python +__pycache__/ +*.py[cod] +*.pyo +*.pyd +*.so +.python-version +.pytest_cache/ +.mypy_cache/ +.ruff_cache/ +.coverage +.coverage.* +htmlcov/ +.tox/ +.nox/ +.venv/ +venv/ +env/ +ENV/ +*.egg-info/ +*.egg + +# Node / Frontend +node_modules/ +frontend/node_modules/ +frontend/dist/ +frontend/.vite/ +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Build / Runtime logs +*.log +logs/ +tmp/ +temp/ + +# ML / Training / Inference outputs +runs/ +backend/runs/ +data/runs/ +backend/static/results/ +data/static/results/ + +# Local data artifacts +data/uploads/ +data/cache/ + -- Gitee From b68488c82f310644b7f4f4e9083a159db4b58c7c Mon Sep 17 00:00:00 2001 From: SamllNorth_Lee <18210040298@163.com> Date: Tue, 10 Feb 2026 13:44:34 +0800 Subject: [PATCH 2/7] =?UTF-8?q?feat:=E6=8E=A8=E7=90=86=E7=BB=93=E6=9E=9C?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=B7=BB=E5=8A=A0=E6=A0=87=E6=B3=A8=E7=BB=98?= =?UTF-8?q?=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Inference.vue | 948 ++++++++++++++++++------------- 1 file changed, 551 insertions(+), 397 deletions(-) diff --git a/frontend/src/views/Inference.vue b/frontend/src/views/Inference.vue index 055a884..5dc6a59 100644 --- a/frontend/src/views/Inference.vue +++ b/frontend/src/views/Inference.vue @@ -4,350 +4,380 @@

模型推理

使用训练好的模型进行目标检测

- +
-
- +
- +
- +
- +
- +
- - - - - - - -
- - - -
- {{ model.display_name || model.name }} - {{ formatFileSize(model.size) }} -
-
-
- - + + + + + + +
+ -
-
-
- {{ model.display_name }} - - 最新 - -
-
- {{ model.dataset }}{{ model.epochs }} • {{ formatTime(model.modified_time) }} + + +
+ {{ model.display_name || model.name }} + {{ formatFileSize(model.size) }}
-
- + + + + +
+
+
+ {{ model.display_name }} + + 最新 + +
+
+ {{ model.dataset }}{{ model.epochs }} • {{ formatTime(model.modified_time) }} +
+
+ {{ formatFileSize(model.size) }} -
-
-
- - - - - - 刷新模型列表 - -
- - - - - - - - - - - - - - - - - - - 上传图片 - - - - - - - - 批量推理 - - - - 清空 - - - - - - - - - -
- 已处理图片: - {{ processedCount }} -
-
- 总检测数: - {{ totalDetections }} -
-
- 平均置信度: - {{ averageConfidence }} -
-
- 处理时间: - {{ processingTime }}ms -
-
- - - - - - - - -
-
- +
+ 总检测数: + {{ totalDetections }}
- - - -
-
- -
- {{ result.detections.length }} 个目标 -
-
- 已标注 +
+ 平均置信度: + {{ averageConfidence }} +
+
+ 处理时间: + {{ processingTime }}ms +
+ + + + + + + + + +
+
+ +
+ + + +
+
+ +
+ {{ result.detections.length }} 个目标 +
+
+ 已标注 +
-
-
-
{{ result.fileName }}
-
- - {{ detection.class }} ({{ (detection.confidence * 100).toFixed(1) }}%) - - +
+
{{ result.fileName }}
+
+ + {{ detection.class }} ({{ (detection.confidence * 100).toFixed(1) }}%) + + +{{ result.detections.length - 3 }} 更多 +
-
-
-
-
- - -
- - - - - - - - - - - - - - - - - - - - -
-
-
- + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + +
+ + +
- + -
- -
-
- - - - - - - - -
-
-
- + +
+
+ + + +
点击图片可放大查看
+
+ + +
点击图片可放大查看
+
+
+
+
+
+

检测详情

-
{{ detection.class }} @@ -357,7 +387,8 @@
- 位置: ({{ detection.bbox.x1.toFixed(0) }}, {{ detection.bbox.y1.toFixed(0) }}) - ({{ detection.bbox.x2.toFixed(0) }}, {{ detection.bbox.y2.toFixed(0) }}) + 位置: ({{ detection.bbox.x1.toFixed(0) }}, {{ detection.bbox.y1.toFixed(0) }}) - + ({{ detection.bbox.x2.toFixed(0) }}, {{ detection.bbox.y2.toFixed(0) }})
大小: {{ detection.bbox.width.toFixed(0) }} × {{ detection.bbox.height.toFixed(0) }}
@@ -375,19 +406,19 @@