PointMLP/README.md

82 lines
2.1 KiB
Markdown
Raw Normal View History

2021-10-04 07:01:38 +00:00
# pointMLP-pytorch
Rethinking Network Design and Local Geometry in Point Cloud: A Simple Residual MLP Framework
2021-10-04 07:26:41 +00:00
## Install
2021-10-04 07:48:33 +00:00
Please ensure that python3.7+ is installed. We suggest user use conda to create a new environment.
Install dependencies
```bash
pip install -r requirement.txt
```
Install CUDA kernels
```bash
pip install pointnet2_ops_lib/.
```
2021-10-04 07:26:41 +00:00
## Classification ModelNet40
2021-10-04 16:15:43 +00:00
The dataset will be automatically downloaded, run following command to train
2021-10-04 16:11:38 +00:00
```bash
# train pointMLP
python main.py --model pointMLP
# train pointMLP-elite
python main.py --model pointMLPElite
# please add other paramemters as you wish.
```
2021-10-04 16:15:43 +00:00
By default, it will create a fold named "checkpoints/{modelName}-{msg}-{randomseed}", which includes args.txt, best_checkpoint.pth, last_checkpoint.pth, log.txt, out.txt.
To conduct voting experiments, run
```bash
# please modify the msg accrodingly
python voting.py --model pointMLP --msg demo
```
2021-10-04 16:11:38 +00:00
2021-10-04 07:26:41 +00:00
## Classification ScanObjectNN
2021-10-04 16:48:24 +00:00
- Make data folder and download the dataset
```bash
cd pointMLP-pytorch/classification_ScanObjectNN
mkdir data
cd data
wget http://103.24.77.34/scanobjectnn/h5_files.zip
unzip h5_files.zip
```
- Train pointMLP/pointMLPElite by
```bash
# train pointMLP
python main.py --model pointMLP
# train pointMLP-elite
python main.py --model pointMLPElite
# please add other paramemters as you wish.
```
By default, it will create a fold named "checkpoints/{modelName}-{msg}-{randomseed}", which includes args.txt, best_checkpoint.pth, last_checkpoint.pth, log.txt, out.txt.
- To conduct voting experiments, run
```bash
# please modify the msg accrodingly
python voting.py --model pointMLP --msg demo
```
2021-10-04 07:26:41 +00:00
## Part segmentation
2021-10-04 16:48:24 +00:00
- Make data folder and download the dataset
```bash
cd pointMLP-pytorch/part_segmentation
mkdir data
cd data
wget https://shapenet.cs.stanford.edu/media/shapenetcore_partanno_segmentation_benchmark_v0_normal.zip --no-check-certificate
unzip shapenetcore_partanno_segmentation_benchmark_v0_normal.zip
```
- Train pointMLP by
```bash
# train pointMLP
python main.py --model pointMLP
# please add other paramemters as you wish.
```