Download GR00T-WholeBodyControl/install_scripts/install_data_collection.sh from Timsty/groot_deployment: direct link, hf CLI and curl.
- Browser
- Download file 3.89 kB
-
https://huggingface.co/Timsty/groot_deployment/resolve/main/GR00T-WholeBodyControl/install_scripts/install_data_collection.sh
- Command line
-
hf download hf://Timsty/groot_deployment/GR00T-WholeBodyControl/install_scripts/install_data_collection.sh
-
curl -L -o install_data_collection.sh https://huggingface.co/Timsty/groot_deployment/resolve/main/GR00T-WholeBodyControl/install_scripts/install_data_collection.sh
3.89 kB
| # install_data_collection.sh | |
| # Sets up the .venv_data_collection venv for recording teleop demonstrations | |
| # in LeRobot dataset format (for post-training with Isaac-GR00T). | |
| # | |
| # Installs gear_sonic[data_collection] which pulls in LeRobot, PyAV, OpenCV, | |
| # and the other dependencies needed by run_data_exporter.py. | |
| # | |
| # Usage: bash install_scripts/install_data_collection.sh (run from repo root) | |
| set -euo pipefail | |
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
| REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)" | |
| # ββ 0. System dependencies ββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| ARCH="$(uname -m)" | |
| echo "[OK] Architecture: $ARCH" | |
| echo "[INFO] Installing system dependencies (espeak for voice feedback) β¦" | |
| if command -v apt-get &>/dev/null; then | |
| sudo apt-get install -y espeak >/dev/null 2>&1 || echo "[WARN] Could not install espeak β voice feedback will be disabled" | |
| fi | |
| # ββ 1. Ensure uv is installed and available ββββββββββββββββββββββββββββββββββ | |
| if ! command -v uv &>/dev/null; then | |
| echo "[INFO] uv not found β installing via official installer β¦" | |
| curl -LsSf https://astral.sh/uv/install.sh | sh | |
| # Source the uv env so it's available in this session | |
| if [ -f "$HOME/.local/bin/env" ]; then | |
| # shellcheck disable=SC1091 | |
| source "$HOME/.local/bin/env" | |
| elif [ -f "$HOME/.cargo/env" ]; then | |
| # shellcheck disable=SC1091 | |
| source "$HOME/.cargo/env" | |
| else | |
| export PATH="$HOME/.local/bin:$PATH" | |
| fi | |
| if ! command -v uv &>/dev/null; then | |
| echo "[ERROR] uv installation succeeded but binary not found on PATH." | |
| echo " Please add ~/.local/bin (or ~/.cargo/bin) to your PATH and re-run." | |
| exit 1 | |
| fi | |
| fi | |
| echo "[OK] uv $(uv --version)" | |
| # ββ 2. Install a uv-managed Python 3.10 (includes dev headers / Python.h) ββββ | |
| echo "[INFO] Installing uv-managed Python 3.10 (includes development headers) β¦" | |
| uv python install 3.10 | |
| MANAGED_PY="$(uv python find --no-project 3.10)" | |
| echo "[OK] Using Python: $MANAGED_PY" | |
| # ββ 3. Clean previous venv (if any) ββββββββββββββββββββββββββββββββββββββββββ | |
| cd "$REPO_ROOT" | |
| echo "[INFO] Removing old .venv_data_collection (if present) β¦" | |
| rm -rf .venv_data_collection | |
| # ββ 4. Create venv & install data_collection extra βββββββββββββββββββββββββββ | |
| echo "[INFO] Creating .venv_data_collection with uv-managed Python 3.10 β¦" | |
| uv venv .venv_data_collection --python "$MANAGED_PY" --prompt gear_sonic_data_collection | |
| # shellcheck disable=SC1091 | |
| source .venv_data_collection/bin/activate | |
| echo "[INFO] Installing gear_sonic[data_collection] (this may take a few minutes) β¦" | |
| # LeRobot's git repo contains LFS test artifacts that aren't needed at runtime. | |
| # Skip them to avoid download failures and save bandwidth. | |
| GIT_LFS_SKIP_SMUDGE=1 uv pip install -e "gear_sonic[data_collection]" | |
| echo "" | |
| echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ" | |
| echo " Setup complete! Activate the venv with:" | |
| echo "" | |
| echo " source .venv_data_collection/bin/activate" | |
| echo "" | |
| echo " You should see (gear_sonic_data_collection) in your prompt." | |
| echo "" | |
| echo " Then run the data exporter with:" | |
| echo " python gear_sonic/scripts/run_data_exporter.py" | |
| echo "ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ" | |