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

19 篇文章 1 订阅
2 篇文章 0 订阅
整体结构

在这里插入图片描述

引入了四项先验信息:

  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 损失

  • 0
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值