Add model license notices and robust direct run packaging
Browse files
scripts/setup_realtime_final_graph_env.sh
CHANGED
|
@@ -2,13 +2,23 @@
|
|
| 2 |
set -euo pipefail
|
| 3 |
|
| 4 |
# Set up a conda environment capable of running the full online GWAM final graph:
|
| 5 |
-
# RoboCasa/robosuite + torch + SAM2 + OpenAI CLIP.
|
|
|
|
| 6 |
# Usage:
|
| 7 |
# bash scripts/setup_realtime_final_graph_env.sh robocasa
|
| 8 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
ENV_NAME="${1:-robocasa}"
|
| 11 |
-
|
|
|
|
|
|
|
| 12 |
|
| 13 |
if ! command -v conda >/dev/null 2>&1; then
|
| 14 |
if [[ -f /home/chris/anaconda3/etc/profile.d/conda.sh ]]; then
|
|
@@ -29,16 +39,33 @@ fi
|
|
| 29 |
conda activate "$ENV_NAME"
|
| 30 |
|
| 31 |
python -m pip install --upgrade pip
|
| 32 |
-
python -m pip install numpy opencv-python robosuite==1.5.2
|
| 33 |
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu130
|
| 34 |
python -m pip install git+https://github.com/openai/CLIP.git
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
fi
|
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
python - <<'PY'
|
| 43 |
import importlib.util
|
| 44 |
missing=[]
|
|
|
|
| 2 |
set -euo pipefail
|
| 3 |
|
| 4 |
# Set up a conda environment capable of running the full online GWAM final graph:
|
| 5 |
+
# RoboCasa/robosuite + torch + SAM2 code + OpenAI CLIP.
|
| 6 |
+
#
|
| 7 |
# Usage:
|
| 8 |
# bash scripts/setup_realtime_final_graph_env.sh robocasa
|
| 9 |
+
#
|
| 10 |
+
# Notes:
|
| 11 |
+
# - This script installs SAM2/CLIP code. The SAM2/CLIP checkpoints are bundled
|
| 12 |
+
# under models/ in the HF package and are used by default.
|
| 13 |
+
# - RoboCasa assets are not redistributed here; users must comply with RoboCasa
|
| 14 |
+
# upstream setup/asset instructions.
|
| 15 |
+
# - The torch command below targets CUDA 13.0 wheels. Change the index/device for
|
| 16 |
+
# CPU or other CUDA versions.
|
| 17 |
|
| 18 |
ENV_NAME="${1:-robocasa}"
|
| 19 |
+
WORK_ROOT="${GWAM_SETUP_ROOT:-$HOME/gwam_realtime_deps}"
|
| 20 |
+
ROBOCASA_ROOT="${ROBOCASA_ROOT:-$WORK_ROOT/robocasa}"
|
| 21 |
+
SAM2_ROOT="${SAM2_ROOT:-$WORK_ROOT/sam2}"
|
| 22 |
|
| 23 |
if ! command -v conda >/dev/null 2>&1; then
|
| 24 |
if [[ -f /home/chris/anaconda3/etc/profile.d/conda.sh ]]; then
|
|
|
|
| 39 |
conda activate "$ENV_NAME"
|
| 40 |
|
| 41 |
python -m pip install --upgrade pip
|
| 42 |
+
python -m pip install numpy opencv-python robosuite==1.5.2
|
| 43 |
python -m pip install torch torchvision --index-url https://download.pytorch.org/whl/cu130
|
| 44 |
python -m pip install git+https://github.com/openai/CLIP.git
|
| 45 |
+
|
| 46 |
+
mkdir -p "$WORK_ROOT"
|
| 47 |
+
if ! python - <<'PY' >/dev/null 2>&1
|
| 48 |
+
import robocasa
|
| 49 |
+
PY
|
| 50 |
+
then
|
| 51 |
+
if [[ ! -d "$ROBOCASA_ROOT/.git" ]]; then
|
| 52 |
+
git clone https://github.com/robocasa/robocasa.git "$ROBOCASA_ROOT"
|
| 53 |
+
fi
|
| 54 |
+
python -m pip install -e "$ROBOCASA_ROOT"
|
| 55 |
fi
|
| 56 |
|
| 57 |
+
if [[ ! -d "$SAM2_ROOT/.git" ]]; then
|
| 58 |
+
git clone https://github.com/facebookresearch/sam2.git "$SAM2_ROOT"
|
| 59 |
+
fi
|
| 60 |
+
python -m pip install -e "$SAM2_ROOT"
|
| 61 |
+
|
| 62 |
+
cat <<'EOF'
|
| 63 |
+
|
| 64 |
+
RoboCasa code deps are installed. If this is a fresh machine, also install/download
|
| 65 |
+
RoboCasa kitchen assets according to upstream RoboCasa instructions before running
|
| 66 |
+
live simulator tasks. This dataset does not redistribute RoboCasa assets.
|
| 67 |
+
EOF
|
| 68 |
+
|
| 69 |
python - <<'PY'
|
| 70 |
import importlib.util
|
| 71 |
missing=[]
|