[论文解读] LW-DETR: A Transformer Replacement to YOLO for Real-Time Detection
LW-DETR 引入了一种轻量级的基于 DETR 的检测器,使用朴素的 ViT 编码器和浅层 DETR 解码器,在多种模型尺度上相较于基于 YOLO 的实时检测器具有更高的准确性和更低的延迟,并受益于交错窗口/全局注意力与 Objects365 预训练。
In this paper, we present a light-weight detection transformer, LW-DETR, which outperforms YOLOs for real-time object detection. The architecture is a simple stack of a ViT encoder, a projector, and a shallow DETR decoder. Our approach leverages recent advanced techniques, such as training-effective techniques, e.g., improved loss and pretraining, and interleaved window and global attentions for reducing the ViT encoder complexity. We improve the ViT encoder by aggregating multi-level feature maps, and the intermediate and final feature maps in the ViT encoder, forming richer feature maps, and introduce window-major feature map organization for improving the efficiency of interleaved attention computation. Experimental results demonstrate that the proposed approach is superior over existing real-time detectors, e.g., YOLO and its variants, on COCO and other benchmark datasets. Code and models are available at (https://github.com/Atten4Vis/LW-DETR).
研究动机与目标
- 以变换器骨干作为 CNN 型 YOLO 模型的替代方案,推动实时目标检测的研究。
- 提出一个简单的 LW-DETR 架构,结合 ViT 编码器、投影器和 DETR 解码器以提升效率。
- 通过先进的损失、预训练、交错注意力以及窗口主导的特征图,提升训练与推理效率。
- 在 COCO 与跨领域基准上展示最先进的实时性能。
提出的方法
- 使用一个朴素的 ViT 编码器,通过卷积投影器连接到 DETR 解码器。
- 聚合多层级的编码器特征,形成更丰富的表示。
- 采用交错的窗口与全局注意力以降低编码器的复杂度。
- 实现一个窗口主导的特征图组织,以实现高效的交错注意力。
- 使用 IoU 感知的分类损失和标准 DETR 式的 bbox 损失进行训练,并进行 Objects365 预训练。
- 实例化五个 LW-DETR 变体(tiny、small、medium、large、xlarge),采用尺度匹配的主干网络、投影配置和解码头。
- 使用混合查询选择,结合内容查询和空间查询来形成对象查询。
实验结果
研究问题
- RQ1一个轻量级的 DETR 基检测器是否能够在速度和准确性上匹配或超过最先进的实时 CNN 检 detectors(如 YOLO 变体)?
- RQ2训练增强(IoU 感知损失、更多监督、预训练)与结构简化(交错窗口/全局注意力、窗口主导映射)对实时 DETR 性能有何影响?
- RQ3多尺度特征聚合和不同投影配置对检测质量和延迟有何影响?
- RQ4像 Objects365 这样的大规模数据集的预训练对 DETR 基实时检测器是否必不可少以超越基于 CNN 的对手?
主要发现
- LW-DETR tiny 在 T4 GPU 上实现 500 FPS 的 42.6 mAP。
- LW-DETR small 实现 340+ FPS 的 48.0 mAP。
- LW-DETR medium 实现 178+ FPS 的 52.5 mAP。
- LW-DETR large 实现 113 FPS 的 56.1 mAP;xlarge 实现 52 FPS 的 58.3 mAP。
- LW-DETR 在 COCO val2017 上的多尺度表现持续优于 YOLOv8、RTMDet 和 YOLO-NAS,且在较大模型上有显著提升。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。