-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathinstall_pip.sh
31 lines (22 loc) · 855 Bytes
/
install_pip.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
#!/usr/bin/env bash
set -e
echo "Creating virtual environment"
python3.10 -m venv .slahmr_env
echo "Activating virtual environment"
source $PWD/.slahmr_env/bin/activate
# install pytorch
$PWD/.slahmr_env/bin/pip install torch==1.13.0 torchvision==0.14.0 --index-url https://download.pytorch.org/whl/cu117
# torch-scatter
$PWD/.slahmr_env/bin/pip install torch-scatter -f https://data.pyg.org/whl/torch-1.13.0+cu117.html
# install PHALP
$PWD/.slahmr_env/bin/pip install phalp[all]@git+https://github.com/brjathu/PHALP.git
# install source
$PWD/.slahmr_env/bin/pip install -e .
# install remaining requirements
$PWD/.slahmr_env/bin/pip install -r requirements.txt
# install ViTPose
$PWD/.slahmr_env/bin/pip install -v -e third-party/ViTPose
# install DROID-SLAM
cd third-party/DROID-SLAM
$PWD/../../.slahmr_env/bin/python setup.py install
cd ../..