-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.sh
41 lines (30 loc) · 1.11 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
source ~/.bashrc
pip install -r requirements.txt
conda install -c anaconda cmake
conda install mkl-service
#conda install pytorch==1.8.1 torchvision==0.9.1 torchaudio==0.8.1 cudatoolkit=10.1 -c pytorch
pip install torch==1.8.1+cu101 torchvision==0.9.1+cu101 torchaudio==0.8.1 -f https://download.pytorch.org/whl/torch_stable.html
export CUDA_HOME=/usr/local/cuda-10.1
export CUDA_ROOT=/usr/local/cuda-10.1
cd ~/Workspace/FutureDet/det3d/ops/dcn
rm -rf build
rm deform_conv_cuda.cpython-37m-x86_64-linux-gnu.so
python setup.py build_ext --inplace
cd ~/Workspace/FutureDet/det3d/ops/iou3d_nms
rm -rf build
rm iou3d_nms_cuda.cpython-37m-x86_64-linux-gnu.so
python setup.py build_ext --inplace
export CUDA_HOME=/usr/local/cuda
export CUDA_ROOT=/usr/local/cuda
cd ~/Workspace/Core/spconv
rm -rf build
rm -rf dist
rm -rf spconv.egg-info
python setup.py bdist_wheel
cd ~/Workspace/Core/spconv/dist
pip install * --force-reinstall
export CUDA_HOME=/usr/local/cuda-10.1
export CUDA_ROOT=/usr/local/cuda-10.1
cd ~/Workspace/Core/apex
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./