• 车道线检测-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 损失

  • 相关阅读:
    AI产品经理还不会数据挖掘❓看完这篇就够了
    MATLAB实战应用案例精讲(二)-【图像处理】图像分类(附MATLAB代码实现)
    c语言范例实例
    Agile Management 2
    STL入门基础 map和set容器
    互调的影响
    对数的应用:放缩x轴或者y轴以更好地表达函数的结果
    分布式微服务 - 4.配置中心 - 2.Nacos
    学习笔记5--高精地图解决方案
    Linux 关闭防火墙
  • 原文地址:https://blog.csdn.net/qq_29695701/article/details/126089111