INSTALL.md
March 25, 2024 ยท View on GitHub
Installation
Requirements
- Python 3.10
- PyTorch
- CUDA 11.x
Example conda environment setup
# The following 4 lines are only for slurm machines. uncomment if needed.
export TORCH_CUDA_ARCH_LIST="6.1;6.2;7.0;7.5;8.0" # a100: 8.0; v100: 7.0; 2080ti: 7.5; titan xp: 6.1
conda create --name pcm python=3.10 -y
conda activate pcm
# install PyTorch
pip install torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu118
pip install torch-scatter -f https://data.pyg.org/whl/torch-2.1.1%2Bcu118.html
pip install -r requirements.txt
# install cpp extensions, the pointnet++ library
cd openpoints/cpp/pointnet2_batch
python setup.py install
cd ../
# grid_subsampling library. necessary only if interested in S3DIS_sphere
cd subsampling
python setup.py build_ext --inplace
cd ..
# # point transformer library. Necessary only if interested in Point Transformer and Stratified Transformer
cd pointops/
python setup.py install
cd ..
# Blow are functions that optional. Necessary only if interested in reconstruction tasks such as completion
cd chamfer_dist
python setup.py install --user
cd ../emd
python setup.py install --user
cd ../../../
# install mamba
cd openpoints/models/PCM/causal-conv1d/
pip install -e .
cd ../mamba
pip install -e .