【PSMNet】《Pramid Stereo Matching Network》

CVPR-2018

github:https://github.com/JiaRenChang/PSMNet


文章目录

  • [1、Background and Motivation](#1、Background and Motivation)
  • [2、Related Work](#2、Related Work)
  • [3、Advantages / Contributions](#3、Advantages / Contributions)
  • 4、Method
    • [4.1、Network Architecture](#4.1、Network Architecture)
    • [4.2、Spatial Pramid Pooling Module](#4.2、Spatial Pramid Pooling Module)
    • [4.3、Cost Volume](#4.3、Cost Volume)
    • [4.4、3D CNN](#4.4、3D CNN)
    • [4.5、Disparit Regression](#4.5、Disparit Regression)
    • 4.6、Loss
  • 5、Experiments
    • [5.1、Datasets and Metrics](#5.1、Datasets and Metrics)
    • 5.2、KITTI2015
    • [5.3、Scene Flow](#5.3、Scene Flow)
    • [5.4、KITTI 2012](#5.4、KITTI 2012)
  • [6、Conclusion(own) / Future work](#6、Conclusion(own) / Future work)

1、Background and Motivation

立体匹配是计算机视觉中的核心任务之一,旨在通过分析一对校正后的立体图像来估计场景的深度信息。在自动驾驶、机器人导航、三维重建和目标检测等应用中具有至关重要的作用。

传统的立体匹配方法通常包括匹配代价计算(matching cost computation)、代价聚合(cost aggregation)、视差优化(disparity optimization)和后处理(disparity refinement)四个步骤

ill-posed regions

  • occlusion areas
  • repeated patterns
  • textureless regions
  • reflective surfaces

随着深度学习的发展,基于卷积神经网络(CNN)的立体匹配方法逐渐成为主流,它们能够通过学习特征表示和匹配函数来提高匹配的准确性

这些方法在 ill-posed regions 往往效果不佳。作者提出 pyramid stereo matching network(PSMNet),利用 SPP 来强化网络的 global context information,用 stacked hourglass 3D CNN 来 regularize cost volume

2、Related Work

传统方法 4 步曲,

SOTA 的方法 focus on how to accurately compute the matching cost using CNNs

Some studies focus on the post-processing

Recently, end-to-end networks(incorporate context information to reduce mismatch)

  • 分割领域,获取 global context 的方法有 SPP 和 encoder-decoder architecture
  • SPyNet introduces image pyramids to estimate optical flow in a coarse-to-fine approach

Luo W, Schwing A G, Urtasun R. Efficient deep learning for stereo matching[C]//Proceedings of the IEEE conference on computer vision and pattern recognition. 2016: 5695-5703.

computation of matching costs is treated as a multi-label classification


SPyNet

Ranjan A, Black M J. Optical flow estimation using a spatial pyramid network[C]//Proceedings of the IEEE conference on computer vision and pattern recognition. 2017: 4161-4170.

本文作者用 SPP 和 stacked hourglass(encoder-decoder) 来强化 global context information

3、Advantages / Contributions

  • 提出了 end-to-end learning framework(PSMNet ) for stereo matching ,用 Spatial pyramid pooling(SPP ) 提取 global context information,用 stacked hourglass 3D CNN 去 regularize the cost volume(也强化了 global context information)
  • ranked first in the KITTI 2012 and 2015 leaderboards before March 18, 2018

4、Method

SPP,multi-scale context aggregation

concatenate the left and right feature maps into a cost volume(暴力)

stacked hourglass

4.1、Network Architecture

基础部件是 basic residual blocks

conv3 和 conv4 还引入了 dilated conv

有 3 个输出

4.2、Spatial Pramid Pooling Module

1 × 1 convolution

the relationship between an object (for example,a car) and its sub-regions (windows, tires, hoods, etc.) is learned by the SPP module to incorporate hierarchical context information.

car vs 窗户、轮胎、引擎盖

4.3、Cost Volume

直接 concatenating 的

4D volume (height × width × disparity × feature size)

4.4、3D CNN

two kinds of 3D CNN architectures for cost volume regularization

built using residual blocks

three main hourglass

three outputs and losses (Loss 1, Loss 2, and Loss 3).

测试的时候用最后一个输出视差图( final disparity map is the last of three outputs)

上图中 Basic 结构用于消融 SPP 用的,因为 Basic 结构不是专门用来强化 global context information 的

4.5、Disparit Regression


σ \sigma σ 是 softmax

disparity regression is more robust than classification-based

python 复制代码
        cost = F.upsample(cost, [self.maxdisp,left.size()[2],left.size()[3]], mode='trilinear')
        cost = torch.squeeze(cost,1)
        pred = F.softmax(cost)
        pred = disparityregression(self.maxdisp)(pred)

其中 disparityregression 的实现如下

python 复制代码
class disparityregression(nn.Module):
    def __init__(self, maxdisp):
        super(disparityregression, self).__init__()
        self.disp = torch.Tensor(np.reshape(np.array(range(maxdisp)),[1, maxdisp,1,1])).cuda()

    def forward(self, x):
        out = torch.sum(x*self.disp.data,1, keepdim=True)
        return out

公式里面有个负号,代码里面好像没有,负号的含义

类似于 conv?其实是相关,哈哈哈

网络中 softmax 后的概率峰值位置应与实际中最小代价对应的视差一致

softmax 前的不对应,哈哈哈

4.6、Loss

回归任务采用的常规的 smooth L1


优势 low sensitivity to outliers

5、Experiments

5.1、Datasets and Metrics

数据集

  • Scene Flow, 35454 training and 4370 testing
  • KITTI2012,H=376,W=1240,194 train 195 test,train split 160 and 34 for train and val
  • KITTI2015,H=376,W=1240,200 train 200 test,train split 80% and 20% for train and val

评价指标

  • EPE
  • D1-bg
  • D1-fg
  • D1-all

5.2、KITTI2015

(1) Ablation study for PSMNet

在 val 数据集上做的实验

看下来 dilated conv 提点最明显

pooling with more levels works better

引入 stacked hourglass 后效果进一步提升

(2)Ablation study for Loss Weight

在 val 数据集上做的实验

(3)Results on Leaderboard

排名第一

(4)Qualitative evaluation

黄色箭头所指区域作者的方法优势明显,第二行和第四行是 error maps,越红表示误差越大

5.3、Scene Flow


5.4、KITTI 2012

也是排名第一

第二行和第四行也是 error map,越亮表示 error 越大,作者的方法白色比较少

6、Conclusion(own) / Future work


更多论文解读,请参考 【Paper Reading】

相关推荐
赵得C1 小时前
昇腾应用使能套件:华为AI生态的“技术桥梁”与落地实践
人工智能·华为
我很哇塞耶1 小时前
从 “检索知识” 到 “会用知识”:西安交大 + 华为 2025 EMNLP 新方案RAG+
人工智能·ai·大模型·rag·检索增强生成
AI科技星1 小时前
加速正电荷产生的电场、引力场与磁场变化率方向关系的数学求导验证——基于张祥前统一场论核心方程
数据结构·人工智能·经验分享·算法·机器学习·计算机视觉
nbsaas-boot1 小时前
项目白皮书:创谱 AI (StartSpec)
人工智能
johnny2331 小时前
快手开源模型/项目介绍:LivePortrait、VANS
人工智能
serve the people1 小时前
tensorflow计算图的底层原理
人工智能·tensorflow·neo4j
盟接之桥1 小时前
盟接之桥说制造:做新时代的“点火者”——从《星星之火,可以燎原》看制造者的信念与方法(供批评)
大数据·前端·人工智能·安全·制造
bin91531 小时前
当AI化身Git管家:初级C++开发者的版本控制焦虑与创意逆袭——老码农的幽默生存指南
c++·人工智能·git·工具·ai工具
上海云盾-小余1 小时前
警惕 “伪装型” CC 攻击!通过日志分析识别异常请求,让恶意访问无所遁形
人工智能·安全·架构