-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall_env.sh
32 lines (31 loc) · 1.29 KB
/
install_env.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
python -m venv venv
source venv/bin/activate
pip3 install manipulation --extra-index-url https://drake-packages.csail.mit.edu/whl/nightly/
pip install wheel
cd third_party/Grounded-Segment-Anything/
export AM_I_DOCKER=False
export BUILD_WITH_CUDA=True
export CUDA_HOME=/usr/local/cuda-11.8
python -m pip install -e segment_anything
pip install --no-build-isolation -e GroundingDINO
pip install --upgrade "diffusers[torch]"
wget -q https://github.com/IDEA-Research/GroundingDINO/releases/download/v0.1.0-alpha/groundingdino_swint_ogc.pth
wget https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth
# not too sure if this is needed
git submodule update --init --recursive
cd grounded-sam-osx && bash install.sh
# anygrasp
cd third_party/MinkowskiEngine
export MAX_JOBS=2
python setup.py install --blas_include_dirs=${CONDA_PREFIX}/include --blas=openblas
cd ../graspnetAPI
pip install . # I had to change the setup.py file to remove a numpy version requirement
cd ../anygrasp_sdk
pip install -r requirements.txt # comment out graspnet in requirements.txt
cd pointnet2
python setup.py install
cd ..
cd grasp_detection
cp gsnet_versions/gsnet.cpython-310m-x86_64-linux-gnu.so gsnet.so
cp ../license_registration/lib_cxx_versions/lib_cxx.cpython-310m-x86_64-linux-gnu.so lib_cxx.so
pip install transforms3d