点云配准(RPM-Net: Robust Point Matching using Learned Features)源码

 这是一篇2020年的论文

Prerequisites

See requirements.txt for required packages. Our source code was developed using Python 3.6 with PyTorch 1.2. However, we do not observe problems running on newer versions available as of time of writing.

Training

Run the relevant commands below. We use the processed ModelNet40 dataset from PointNet for this work, which will be automatically downloaded if necessary. Performance typically saturates by around 500-1000 epochs depending on setting.

mkdir rpmnet && cd rpmnet
git clone git@github.com:yewzijian/RPMNet.git
cd RPMNet/src
python train.py --noise_type crop

For clean and noisy data, we use a smaller batch size of 4 to allow it to train on a 11GB GPU (e.g. Nvidia GTX 1080Ti), but for the rest of the experiments we use a batch size of 8. So, for clean data, replace the last line with:

python train.py --noise_type clean --train_batch_size 4

, and for noisy data:

python train.py --noise_type jitter --train_batch_size 4

The tensorboard summaries and more importantly the checkpoints will be saved in [root]/logs/[datetime]/*. Note that you need a recent version of tensorboard if you wish to visualize the point clouds (optional).

Inference / Evaluation

This script performs inference on the trained model, and computes evaluation metrics.

Note: replace --noise_type accordingly if not running on partial data.

python eval.py --noise_type crop --resume [path-to-logs/ckpt/model-best.pth]

Alternatively, given transforms saved in a .npy file of shape (B, [n_iter], 3, 4), you can evaluate them using:

python eval.py --noise_type crop --transform_file [path-to-transform-file.npy]

Pretrained models

Our pretrained models can be downloaded from here. You should be able to obtain the results shown in the paper by using these checkpoints.

源码详解:未完待续....

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值