-
Notifications
You must be signed in to change notification settings - Fork 50
/
install_conda.sh
executable file
·35 lines (25 loc) · 1 KB
/
install_conda.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
#!/usr/bin/env bash
set -e
export CONDA_ENV_NAME=slahmr
conda create -n $CONDA_ENV_NAME python=3.10 -y
conda activate $CONDA_ENV_NAME
# install pytorch using pip, update with appropriate cuda drivers if necessary
pip install torch==1.13.0 torchvision==0.14.0 --index-url https://download.pytorch.org/whl/cu117
# uncomment if pip installation isn't working
# conda install pytorch=1.13.0 torchvision=0.14.0 pytorch-cuda=11.7 -c pytorch -c nvidia -y
# install pytorch scatter using pip, update with appropriate cuda drivers if necessary
pip install torch-scatter -f https://data.pyg.org/whl/torch-1.13.0+cu117.html
# uncomment if pip installation isn't working
# conda install pytorch-scatter -c pyg -y
# install PHALP
pip install phalp[all]@git+https://github.com/brjathu/PHALP.git
# install remaining requirements
pip install -r requirements.txt
# install source
pip install -e .
# install ViTPose
pip install -v -e third-party/ViTPose
# install DROID-SLAM
cd third-party/DROID-SLAM
python setup.py install
cd ../..