【车道线检测】SAD -- Learning Lightweight Lane Detection CNNs by Self Attention Distillation

paper:Learning Lightweight Lane Detection CNNs by Self Attention Distillation
Code:github


Abstract

Without learning from much richer context, these models often fail in challenging scenarios.

本文提出了一个新的知识蒸馏方法:Self Attention Distillation,模型可以learn from itself and gains substantial improvement without any additional supervision or labels.

SAD can be easily incorporated in any feedforward convolutional neural networks (CNN) and does not increase the inference time.

The lightest model, ENet-SAD, performs comparatively or even surpasses existing algorithms. Notably, ENet-SAD has 20 × fewer parameters and runs 10 × faster compared to the state-of-the-art SCNN.

Self Attention Distillation

Attention maps derived from different layers would capture diverse and rich contextual information.
在这里插入图片描述
在训练一半的模型中加入SAD,the preceding block to mimic the attention maps of a deeper block.

加入SVD后,一方面浅层block的attention map被修正,提取到更丰富的上下文信息;另一方面浅层学习到更好的特征反作用于深层。

SAD is only used in the training phase and brings no computational cost during the deployment.
在这里插入图片描述

网络总的损失函数:

L e x i s t L_{exist} Lexist :the binary cross entropy loss.
s ~ \tilde{s} s~ : the segmentation map produced by the network
b ~ \tilde{b} b~ :the prediction of the existence of lanes.

Lane Prediction

p1支路预测车道线是否存在.
在这里插入图片描述

Lane Post-processing

类似SCNN

First, we use a 9 × 9 kernel to smooth the probability maps. Then,
for each lane whose existence probability is larger than 0.5, we search the corresponding probability map every 20 rows for the position with the highest probability value. Finally, we use cubic splines to connect these positions to get the final output. The process improves the final lane prediction results as it removes noises in the probability maps.

在这里插入图片描述

Result

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值