0%

双流检测Gated-SCNN

简述

这篇文章提出two-stream CNN架构,two-stream包括经典网络结构regular stream和处理边界信息的shape stream。这两个处理流并行处理不同的任务,相互协调工作。regular stream可以帮助shape stream只关注边界信息而不被一些无用的噪声干扰;shape stream可以辅助regular stream做更精确的识别。并且该架构在微小物体上有着明显提升。

Gated-SCNN.png

细节描述

Shape Stream是如何工作的

作者在Shape Stream中添加了门控结构Gated Convolutional Layer,让Shape Stream将注意力放在它该处理的任务上即边界信息。
其中attention map 的公式为:

αt=σ(C1×1(strt))\alpha_{t}=\sigma\left(C_{1 \times 1}\left(s_{t} \| r_{t}\right)\right)

  1. rtr_tsts_t分别对应regular and shape streams;
  2. ||表示的是sts_trtr_tconcatenating;
  3. 最后对1x1卷积添加sigmoid卷积。至此一个attention map就形成了。

GCL 的计算公式为:

GCL

表示的是:sts_t逐像素与attention mapαt\alpha_t点乘,取得感兴趣区域信息。再通过加权值为wt的残差网络。

多任务学习损失函数:

  1. 预测边界信息使用的是BCE,用来监督更新both the regular and shape streams的参数;
  2. 预测语义信息使用的是CE,监督更新所有的网络参数。

Lθϕ,γ=λ1LBCEθ,ϕ(s,s^)+λ2LCEθϕ,γ(y^,f)\mathcal{L}^{\theta \phi, \gamma}=\lambda_{1} \mathcal{L}_{B C E}^{\theta, \phi}(s, \hat{s})+\lambda_{2} \mathcal{L}_{C E}^{\theta \phi, \gamma}(\hat{y}, f)

这里的λ1,λ2\lambda_1,\lambda_2是用来控制两种损失权重的超参。

Dual Task Regularizer:
最后对two-stream的误差函数加入正则化项。
Lθϕ,γ=Lregθϕ,γ+Lregθϕ,γ\mathcal{L}^{\theta \phi, \gamma}=\mathcal{L}_{r e g \rightarrow}^{\theta \phi, \gamma}+ \mathcal{L}_{r e g_{\leftarrow}}^{\theta \phi, \gamma}
其中
Lregθϕ,γ=λ3p+ζ(p+)ζ^(p+)\mathcal{L}_{r e g \rightarrow}^{\theta \phi, \gamma}=\lambda_{3} \sum_{p^{+}}\left|\zeta\left(p^{+}\right)-\hat{\zeta}\left(p^{+}\right)\right|
Lregθϕ,γ=λ4k,p1sp[y^pklogp(ypkr,s)]\mathcal{L}_{r e g_{\leftarrow}}^{\theta \phi, \gamma}=\lambda_{4} \sum_{k, p} \mathbb{1}_{s_{p}}\left[\hat{y}_{p}^{k} \log p\left(y_{p}^{k} | r, s\right)\right]
ζ=12(Gargmaxkp(ykr,s))\zeta=\frac{1}{\sqrt{2}}\left\|\nabla\left(G * \arg \max _{k} p\left(y^{k} | r, s\right)\right)\right\|

  1. ζ\zeta表示指定像素是否属于输入图像的某个语义信息,通过对分割输出求空间导数即可。
  2. P+P^+表示的是真值与预测值都非零的像素坐标。
  3. λ3,λ4\lambda_3,\lambda_4都是权重超参。
  4. 1s={1:s> thrs }\mathbb{1}_{s}=\{1 : s>\text { thrs }\},置信度阈值,论文中定为0.8。

成绩

在用 Cityscapes 基准测试中,这个模型的 mIoU 比 DeepLab-v3 高出 1.5%,F-boundary 得分比 DeepLab-v3 高 4%。在更小的目标上,该模型能够实现 7% 的 IoU 提升。

Comparison in terms of IoU vs state-of-the-art baselines on the Cityscapes val set

总结:
论文得来终觉浅,绝知此事要代码。等代码出来后再好好梳理一遍。
Gated-SCNN

论文:Gated-SCNN: Gated Shape CNNs for Semantic Segmentation(2019.07)
地址:https://arxiv.org/abs/1907.05740
来自:英伟达

-------------本文结束感谢您的阅读-------------

欢迎关注我的其它发布渠道