arXiv:2608.14727cs.CV2026-08

用廉价模型先筛缺陷,再用高效模型精检,适合小工厂部署。

Low Cost Two-Stage Fabric Defect Detection at the Edge

论文配图:Low Cost Two-Stage Fabric Defect Detection at the Edge
图 1 · 摘自论文原文
  • 第一阶段用轻量自编码器加注意力门,第二阶段仅对可疑帧调用YOLOv5n
  • 在249张图上检出全部20个缺陷,误报率49.3%,比普通自编码器低19.3%
  • 系统实测提速1.36倍,但主要靠图像解码与推理并行,非级联结构

低收入经济体的服装厂仍以人工检验布料缺陷为主,商用视觉系统价格过高。由于缺陷在受控生产中稀少,自然方案是级联:先用低成本异常检测器筛查每帧,仅对可疑帧触发完整检测器。本文构建了针对四种针织布缺陷的级联系统,并在NVIDIA Jetson Nano上部署,使用TensorRT FP16。第一阶段为紧凑卷积自编码器,含解码器注意力门、边缘加权重构损失及来自冻结YOLOv5n教师模型的特征级知识蒸馏;第二阶段仅在标记帧上调用YOLOv5n。在249张独立于训练集的测试图像上(20个缺陷,229个正常),第一阶段在召回优先阈值下检出全部20个缺陷(95%置信区间0.83–1.00),误报率为49.3%(229张中113张误报),相比普通自编码器降低19.3%(p=0.011)。并行流水线达13.45 FPS,高于串行YOLO-only的9.86 FPS。分析表明,1.36倍加速中91%源于JPEG解码与推理重叠,级联仅贡献5.1%的推理减少(转发率p=0.534)。进一步显示转发受限于误报而非缺陷频率——85%转发帧为假警报,并量化在更严格校准下可实现29–45%的推理节省。本研究警示:未控制数据路径的级联加速测量可能失真,系统定位为AI辅助初筛,非全自动判别。

原文摘要 · Abstract (English)

Fabric inspection in the garment industries of low-income economies remains largely manual, and commercial vision systems are priced beyond most small and medium mills. Because defects are sparse under controlled production, a natural response is a cascade: screen every frame with a cheap anomaly detector and invoke a full detector only on suspicious frames. We build such a cascade for four knit-fabric defect classes and deploy it end-to-end on an NVIDIA Jetson Nano with TensorRT FP16. Stage 1 is a compact convolutional autoencoder with decoder attention gates, an edge-weighted reconstruction loss, and feature-level distillation from a frozen YOLOv5n teacher; Stage 2 is YOLOv5n, invoked only on flagged frames. On a 249-image benchmark disjoint from detector training (20 defective, 229 non-defective), Stage 1 at a recall-prioritised threshold flags all 20 defective images (95% CI 0.83-1.00) at a false-positive rate of 49.3% (113/229), reducing false positives by 19.3% relative to a plain autoencoder (p=0.011). The parallel pipeline reaches 13.45 FPS against 9.86 FPS for a sequential YOLO-only loop. Our central finding comes from decomposing that 1.36x: 91% of it is attributable to overlapping JPEG decode with inference rather than to the cascade, which contributes only a 5.1% inference reduction at the measured forwarding rate p = 0.534. We further show that forwarding here is false-positive-limited rather than prevalence-limited - 85% of forwarded frames are false alarms - and quantify the 29-45% inference reduction attainable under tighter calibration. We report this as a caution for cascade speedups measured without controlling the data path, and position the system as AI-assisted triage rather than autonomous acceptance.

缺陷检测边缘计算级联检测轻量化模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。