A GeoTransformer point cloud registration model (geometric transformer for point cloud registration). Trained on 3DMatch.
pip install torch-pointcloud
import torch
import torch_pointcloud as tp
from torch_pointcloud.utils.data import collate
model, info = tp.create_model(
"geotransformer.3dmatch.zheng-qin",
pretrained=True,
return_info=True,
)
model = model.eval()
# synthetic pair: a surface patch at the scale of the training scans, the source shifted off the reference
num_points = 8192
extent = torch.tensor([2, 2, 0.04])
sample = {
"pos": torch.rand(num_points, 3) * extent + 0.1 * extent,
"ref_pos": torch.rand(num_points, 3) * extent,
}
data = collate([sample], cat_keys=["ref_pos"])
with torch.no_grad():
out = model(
data.get("x"),
data["pos"],
data["batch"],
data.get("ref_x"),
data["ref_pos"],
data["batch_ref_pos"],
)
registration = model.decode(out) # transform (B, 4, 4) and the correspondences
@inproceedings{qin2022geotransformer,
title = {Geometric Transformer for Fast and Robust Point Cloud Registration},
author = {Zheng Qin and Hao Yu and Changjian Wang and Yulan Guo and Yuxing Peng and Kai Xu},
booktitle = {CVPR},
year = {2022}
}
@inproceedings{zeng20173dmatch,
title = {{3DMatch}: Learning Local Geometric Descriptors from {RGB-D} Reconstructions},
author = {Andy Zeng and Shuran Song and Matthias Nie{\ss}ner and Matthew Fisher and Jianxiong Xiao and Thomas Funkhouser},
booktitle = {CVPR},
year = {2017}
}
@software{dujardin2026pytorchpointcloud,
author = {Arthur Dujardin},
title = {PyTorch PointCloud},
year = {2026},
doi = {10.5281/zenodo.22159632},
url = {https://github.com/arthurdjn/pytorch-pointcloud},
}