Repository navigation
Fjq/demo inference web - #6
Open
1605009600 wants to merge 3 commits into
Open
1605009600 wants to merge 3 commits into
1605009600 wants to merge 3 commits into
Conversation
SayQuan1
requested changes
Sep 29, 2026
SayQuan1
left a comment
Owner
There was a problem hiding this comment.
docs/15-business-vs-inference-tasks.md这个文档就不提交了,把这个去掉吧
- 前后端分离: FastAPI 后端 + 原生前端页面 - YOLOv5s 真实推理, 轮廓分析回退用于合成图片 - 质量检测基于图像统计(亮度/清晰度/对比度/反光率) - 实体识别、相邻关系、规则引擎均依赖实际检测结果 - 支持质量拦截、规则命中、无风险三种场景
- 状态机: queued/quality_checking/processing/needs_review/completed/failed - 复核接口: 确认/驳回/无法判断分开操作, 无法判断必须reason_code - 轮询: 2s->5s->10s梯度, 5分钟停止, 页面隐藏暂停, 失败指数退避 - 幂等键上传, 15MiB/MIME预校验, 环境横幅由后端下发 - 复核界面: 检测框按渲染尺寸换算, 零候选也要求人工完成
- 替换损坏的非标准权重为官方yolov5s.pt - 加载器改用官方attempt_load,坐标改用scale_boxes映射 - 删除颜色回退,检测结果100%来自YOLO真实推理 - 实体按YOLO实际类别生成,非化学品不参与规则 - 检测框显示真实类别(中英文)与置信度
1605009600
force-pushed
the
fjq/demo-inference-web
branch
from
October 2, 2026 16:37
0a8689a to
711dc00
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更说明
增加复核流程(确认/驳回/无法判断)、状态机与轮询规范。
影响范围
验证
重复复核 409;needs_retake 复核 409;模糊图正确拦截
风险与回滚
审查清单
.obsidian/、.env、凭据或未脱敏数据