-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprepare.sh
executable file
·32 lines (28 loc) · 1.01 KB
/
prepare.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
#!/usr/bin/bash
git submodule update --init --recursive
pip install -U "setuptools<70"
pip install gdown
pip install torch==2.3.1 torchvision==0.18.1 torchaudio==2.3.1 --index-url https://download.pytorch.org/whl/cu121
pip install -r requirements.txt
pip install git+https://github.com/NVlabs/nvdiffrast.git
pip install git+https://github.com/facebookresearch/pytorch3d.git # no ninja for build stability
cd third_party/kaolin
FORCE_CUDA=1 python setup.py develop
cd ../..
# Install FoundationPose
cd third_party/FoundationPose/mycpp
mkdir build
cd build
cmake .. && make -j$(nproc)
cd ../../bundlesdf/mycuda
pip install -e .
cd ../..
gdown 1jBx_FcI00Jb6k2DkgwF8eilkQsZZWoZp && unzip foundation_pose_ckpt.zip && rm foundation_pose_ckpt.zip
gdown 1f8pi8w3dopXHya3PfmM1DykgqC4AGkkO && unzip foundation_pose_demo_data.zip && rm foundation_pose_demo_data.zip
cd ../..
# Install MegaPose
cd third_party/megapose6d && pip install -e .
python -m megapose.scripts.download --megapose_models
cd ../..
# Install PoseEstimation
pip install -e .