This repository contains code for the paper Neural Shape Mating: Self-Supervised Object Assembly with Adversarial Shape Priors.
Correspondence: Yun-Chun Chen [email protected]
Learning to autonomously assemble shapes is a crucial skill for many robotic applications. While the majority of existing part assembly methods focus on correctly posing semantic parts to recreate a whole object, we interpret assembly more literally: as mating geometric parts together to achieve a snug fit. By focusing on shape alignment rather than semantic cues, we can achieve across category generalization and scaling. In this paper, we introduce a novel task, pairwise 3D geometric shape mating, and propose Neural Shape Mating (NSM) to tackle this problem. Given point clouds of two object parts of an unknown category, NSM learns to reason about the fit of the two parts and predict a pair of 3D poses that tightly mate them together. In addition, we couple the training of NSM with an implicit shape reconstruction task, making NSM more robust to imperfect point cloud observations. To train NSM, we present a self-supervised data collection pipeline that generates pairwise shape mating data with ground truth by randomly cutting an object mesh into two parts, resulting in a dataset that consists of 200K shape mating pairs with numerous object meshes and diverse cut types. We train NSM on the collected dataset and compare it with several point cloud registration methods and one part assembly baseline approach. Extensive experimental results and ablation studies under various settings demonstrate the effectiveness of the proposed algorithm.
If you find our code useful, please consider citing our work using the following bibtex:
@inproceedings{NSM,
title={Neural Shape Mating: Self-Supervised Object Assembly with Adversarial Shape Priors},
author={Chen, Yun-Chun and Li, Haoda and Turpin, Dylan and Jacobson, Alec and Garg, Animesh},
booktitle={IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
year={2022}
}
- Ubuntu 18.04
- Install Anaconda Python3.7
- Code is tested on 4 NVIDIA P100 GPUs
- Please see the
data_generation
folder for data generation code. - Code is implemented in C++ and relies on libigl.
- Please follow the instructions here for package installation and compiling instructions.
- We use object meshes from Thingi10K, Google Scanned Objects, and ShapeNet.
- Please download object meshes from their original websites.
- Please follow the license for each dataset as specified in their website.
- The training code is provided in the
script
folder. - Please modify the respective parameters in
config/train.yml
- Note: You will need at least 4 NVIDIA P100 GPUs to run the script.