• 车道线检测-CLRNet-CVPR2022论文学习笔记


    整体结构

    在这里插入图片描述

    引入了四项先验信息:

    1. 前景与背景概率;
    2. 车道线的长度;
    3. 车道线起点,及在该点处的倾斜角;
    4. 预测结果与GT之间的 N 个偏移量(点间距)。
    1. 跨层 refinement

    P t = P t − 1 ∘ R t ( L t − 1 , P t − 1 ) P_t=P_{t-1}\circ R_t(L_{t-1},P_{t-1}) Pt=Pt1Rt(Lt1,Pt1)

    其中,

    • P t P_t Pt 是车道线先验参数(起始点及夹角)。
    • R t R_t Rt 用于获取 RoI 车道线特征,然后再由两个 FC 层得到精调之后的参数 P t P_t Pt
    2. 集成车道线先验的全局上下文

    G = s o f t m a x ( X p T X f C ) X f T \mathcal{G}=softmax(\frac{\mathcal{X}^T_p \mathcal{X}_f}{\sqrt{C}})\mathcal{X}^T_f G=softmax(C XpTXf)XfT

    其中, X p ∈ R C × 1 \mathcal{X}_p\in \mathbb{R}^{C\times 1} XpRC×1 X f ∈ R C × H W \mathcal{X}_f\in \mathbb{R}^{C\times HW} XfRC×HW

    3. Line IoU 损失函数

    在这里插入图片描述

    L L I o U = 1 − L I o U \mathcal{L}_{LIoU}=1-LIoU LLIoU=1LIoU

    LIoU 的计算公式见上图。

    其中,

    • d i O = min ⁡ ( x i p + e , x i g + e ) − max ⁡ ( x i p − e , x i g − e ) d^{\mathcal{O}}_i=\min(x^p_i+e,x^g_i+e)-\max(x^p_i-e,x^g_i-e) diO=min(xip+e,xig+e)max(xipe,xige)
    • d i U = max ⁡ ( x i p + e , x i g + e ) − min ⁡ ( x i p − e , x i g − e ) d^{\mathcal{U}}_i=\max(x^p_i+e,x^g_i+e)-\min(x^p_i-e,x^g_i-e) diU=max(xip+e,xig+e)min(xipe,xige)

    LIoU 可以为 负数,这可以使它具备对非重叠线段的优化能力。

    4. 正样本的选择

    基于下面的 Cost,为每条GT车道线分配多个预测的车道线(top-K)。

    C a s s i g n = w s i m C s i m + w c l s C c l s \mathcal{C}_{assign}=w_{sim}\mathcal{C}_{sim}+w_{cls}\mathcal{C}_{cls} Cassign=wsimCsim+wclsCcls

    其中, C s i m = ( C d i s ⋅ C x y ⋅ C θ ) 2 \mathcal{C}_{sim}=(\mathcal{C}_{dis}\cdot\mathcal{C}_{xy}\cdot\mathcal{C}_{\theta})^2 Csim=(CdisCxyCθ)2

    • C c l s \mathcal{C}_{cls} Ccls 是 Focal Loss;
    • C s i m \mathcal{C}_{sim} Csim 中分别是车道线点的平均像素距离、起始点距离、起始角度距离。
    损失函数

    L t o t a l = w c l s L c l s + w x y t l L x y t l + w L I o U L L I o U \mathcal{L}_{total}=w_{cls}\mathcal{L}_{cls}+w_{xytl}\mathcal{L}_{xytl}+w_{LIoU}\mathcal{L}_{LIoU} Ltotal=wclsLcls+wxytlLxytl+wLIoULLIoU

    此外,文中还使用了一个辅助的分割损失函数。

    L x y t l \mathcal{L}_{xytl} Lxytl 是关于起始点位置、起始角度、车道线长度的 s m o o t h − l 1 smooth-\mathcal{l}_1 smoothl1 损失

  • 相关阅读:
    C#/.NET/.NET Core编程技巧练习集(学习,实践干货)
    统计学中关于自由度的详细解释以及求平均值为什么消耗自由度1
    详解csrf(跨站请求伪造)
    企业微信设置可信域名
    大数据----数据仓库设计基础(实列演示)
    写完Numpy100道基础练习题后的错误总结和语法总结
    典型的数据仓库模型实施过程详解
    【Spring入门学习】
    设计模式---建造者模式
    软考高级系统架构设计师系列案例考点专题六:面向服务架构设计
  • 原文地址:https://blog.csdn.net/qq_29695701/article/details/126089111