安装
$ pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
$ pip install torch-points3d
$ pip install ipython
$ pip install trame
$ pip install h5py
$ pip install gdown
案例
from torch_points3d.applications.pointnet2 import PointNet2
from torch_points3d.applications.kpconv import KPConv
from torch_points3d.applications.minkowski import Minkowski
from torch_points3d.applications.rsconv import RSConv
from torch_points3d.applications.votenet import VoteNet
常见问题汇总
[Errno 2] No such file or directory: ‘llvm-config’
sudo apt install llvm-8-dev
sudo ln -s /usr/bin/llvm-config-8 /usr/bin/llvm-config
检查一下
llvm-config --version
AttributeError: module ‘numpy‘ has no attribute ‘long‘
replace numpy version with
pip install numpy==1.23.0