News:Our paper has been accepted by AAAI-2024.
This code has been tested on Ubuntu 20.04, python 3.8.12, torch 1.9.0 and cuda 11.2. Please install related libraries before running this code:
pip install -r requirements.txt
please compile Pytorch 3rd-party modules ChamferDistancePytorch and mm3d_pn2. A simple way is using the following command:
cd $PointAttN_Home/utils/ChamferDistancePytorch/chamfer3D
python setup.py install
cd $PointAttN_Home/utils/mm3d_pn2
python setup.py build_ext --inplace
Download the datasets:
To train the PointAttN model, modify the dataset path in cfgs/PointAttN.yaml
, run:
python train.py -c PointAttN.yaml
The pretrained models on Completion3D and PCN benchmark are available as follows:
dataset | performance | model link |
---|---|---|
Completion3D | CD = 6.63 | [BaiDuYun] (code:nf0m)[GoogleDrive] |
PCN | CD = 6.86 | [BaiDuYun] (code:kmju)[GoogleDrive] |
To test PointAttN on PCN benchmark, download the pretrained model and put it into PointAttN_cd_debug_pcn
directory, run:
python test_pcn.py -c PointAttN.yaml
To test PointAttN on Completion3D benchmark, download the pretrained model and put it into PointAttN_cd_debug_c3d
directory, run:
python test_c3d.py -c PointAttN.yaml
-
We include the following PyTorch 3rd-party libraries:
[1] ChamferDistancePytorch
[2] mm3d_pn2 -
Some of the code of this project is borrowed from VRC-Net
If you use PointAttN in your work, please cite our paper:
@InProceedings{Wang_2024_AAAI,
author = {Jun Wang, Ying Cui, Dongyan Guo, Junxia Li, Qingshan Liu, Chunhua Shen},
title = {PointAttN: You Only Need Attention for Point Cloud Completion},
booktitle = {Association for the Advancement of Artificial Intelligence (AAAI)},
month = {Feb},
year = {2024}
}