【基于深度学习方法的激光雷达点云配准系列之GeoTransformer】——粗配准

在模型部分有了初步了解之后, 接下来我们对后续的粗配准、精配准等部分依次进行解读. 本篇主要来看粗配准部分, 代码是在GeoTransformer/experiments/geotransformer.kitti.stage5.gse.k3.max.oacl.stage2.sinkhorn/下面的model.py. 这里再次结合个人理解以及model.py中类GeoTransformer的forward函数, 大概梳理了一下前向传播的WorkFlow, 大家可以参考理解. 每个步骤以单独的颜色表示, 箭头代表输入输出.
在这里插入图片描述

1.coarse_matching

1.1 概要

类GeoTransformer中的coarse_matching实际上是一个SuperPointMatching类的实例(参见下文摘出的代码), 它的超参主要是cfg中的coarse_matching.num_correspondences和coarse_matching.dual_normalization.
这个类中是没有可学习的网络参数的.

        self.coarse_matching = SuperPointMatching(
            cfg.coarse_matching.num_correspondences, cfg.coarse_matching.dual_normalization
        )

在论文中提到, dual_normalization操作, 是特意设计来抑制掉一些不准确匹配,以提高配准性能的, 因此默认是True.
在这里插入图片描述

1.2 功能

对transformer模块提取的ref 特征和 src特征,首先应用mask、移除掉一些空的patch, 然后对计算pair_wise距离, 将该距离转化为matching_scores得分, 输出topk——即前num_correspondences个对应的src点和ref点的索引。

1.3 超参

num_correspondences

1.4 input

        ref_feats:  参考点云中superpoints的特征.
        src_feats:  待配准点云中superpoints的特征.
        ref_masks:  参考点云中superpoints的mask.
        src_masks:  待配准点云中superpoints的mask.

1.5 output

        ref_node_corr_indices:  参考点云中,被选中为corresponding superpoints的 indices.
        src_node_corr_indices:  待配准点云中,被选中为corresponding superpoints的 indices.
        node_corr_scores: corresponding superpoints的score . 对应点的匹配得分
    def forward(self, ref_feats, src_feats, ref_masks=None, src_masks=None):
        r"""Extract superpoint correspondences.

        Args:
            ref_feats (Tensor): features of the superpoints in reference point cloud.
            src_feats (Tensor): features of the superpoints in source point cloud.
            ref_masks (BoolTensor=None): masks of the superpoints in reference point cloud (False if empty).
            src_masks (BoolTensor=None): masks of the superpoints in source point cloud (False if empty).

        Returns:
            ref_corr_indices (LongTensor): indices of the corresponding superpoints in reference point cloud.
            src_corr_indices (LongTensor): indices of the corresponding superpoints in so

相关推荐

  1. 基于SVD

    2024-07-10 04:58:06       22 阅读
  2. Open3D介绍-之间进行

    2024-07-10 04:58:06       21 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-10 04:58:06       66 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-10 04:58:06       70 阅读
  3. 在Django里面运行非项目文件

    2024-07-10 04:58:06       57 阅读
  4. Python语言-面向对象

    2024-07-10 04:58:06       68 阅读

热门阅读

  1. C# 中使用模式匹配 备忘

    2024-07-10 04:58:06       26 阅读
  2. 【selenium】元素等待

    2024-07-10 04:58:06       21 阅读
  3. HTMLtable表转C#DataTable

    2024-07-10 04:58:06       32 阅读
  4. WPF设置全局样式

    2024-07-10 04:58:06       25 阅读
  5. AJAX学习笔记上(学习自用)

    2024-07-10 04:58:06       29 阅读
  6. linux之段错误的分析

    2024-07-10 04:58:06       26 阅读
  7. 三级_网络技术_11_路由设计技术基础

    2024-07-10 04:58:06       19 阅读
  8. Ubuntu上如何安装nvm包管理器

    2024-07-10 04:58:06       24 阅读
  9. python项目常见使用的传参调试方法

    2024-07-10 04:58:06       31 阅读
  10. 深入理解Spring Boot中的数据库优化

    2024-07-10 04:58:06       27 阅读
  11. HOW - React Router v6.x Feature 实践(react-router-dom)

    2024-07-10 04:58:06       22 阅读
  12. Mysql:时区问题

    2024-07-10 04:58:06       18 阅读
  13. WebSocket 双向通信

    2024-07-10 04:58:06       24 阅读