yqi19 commited on
Commit
7fca91f
Β·
verified Β·
1 Parent(s): dba700f

Upload code/1027_run/setup_fix.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. code/1027_run/setup_fix.sh +73 -0
code/1027_run/setup_fix.sh ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Fix ur5dp env: install torch first, then rest of deps
3
+ # Also fix simfoundry lerobot
4
+ set -uo pipefail
5
+
6
+ ROOT=/lustre/fsw/portfolios/nvr/users/jtremblay/yu
7
+ CONDA=$ROOT/miniconda3
8
+ ENV_SRC=/lustre/fsw/portfolios/nvr/users/jtremblay/1027_sim_tasks_dl/1027_sim_tasks/env/yu_workstation_2026-10-27
9
+ LOG=$ROOT/1027_run/logs/setup_fix.log
10
+
11
+ exec > >(tee -a $LOG) 2>&1
12
+
13
+ export PATH=$CONDA/bin:/usr/local/bin:/usr/bin:/bin
14
+ export HOME=/root
15
+ source $CONDA/etc/profile.d/conda.sh
16
+
17
+ log() { echo "== $(date '+%F %T') $*"; }
18
+
19
+ # ── Fix ur5dp: install torch first, then everything else ──────────────────────
20
+ log "Fixing ur5dp env"
21
+ P=$CONDA/envs/ur5dp/bin/python
22
+
23
+ log "Installing torch 2.8.0+cu128 first"
24
+ $P -m pip install --no-cache-dir \
25
+ torch==2.8.0+cu128 torchvision torchaudio \
26
+ --extra-index-url https://download.pytorch.org/whl/cu128
27
+
28
+ log "Installing remaining ur5dp deps"
29
+ # Install key packages individually to avoid --no-deps conflicts
30
+ $P -m pip install --no-cache-dir \
31
+ diffusers==0.35.2 \
32
+ hydra-core==1.2.0 \
33
+ omegaconf==2.2.3 \
34
+ dill==0.3.5.1 \
35
+ zarr==2.12.0 \
36
+ einops==0.4.1 \
37
+ numcodecs \
38
+ imagecodecs \
39
+ av \
40
+ numba \
41
+ pandas \
42
+ tqdm \
43
+ wandb \
44
+ scipy \
45
+ opencv-python-headless \
46
+ robomimic==0.3.0
47
+
48
+ log "Installing robomimic from git if version mismatch"
49
+ $P -c "import robomimic; print('robomimic', robomimic.__version__)" 2>/dev/null || \
50
+ $P -m pip install --no-cache-dir \
51
+ "robomimic @ git+https://github.com/BoceHu/robomimic.git@6737667"
52
+
53
+ log "Verifying ur5dp"
54
+ $P -c "import torch, diffusers, robomimic, hydra, zarr; \
55
+ print('torch', torch.__version__, torch.cuda.is_available(), \
56
+ torch.cuda.get_device_name(0) if torch.cuda.is_available() else 'no-gpu')"
57
+
58
+ # ── Fix simfoundry lerobot ─────────────────────────────────────────────────────
59
+ log "Fixing simfoundry lerobot"
60
+ SP=$CONDA/envs/simfoundry/bin/python
61
+ $SP -m pip install --no-deps \
62
+ "lerobot @ git+https://github.com/huggingface/lerobot.git@577cd10974b84bea1f06b6472eb9e5e74e07f77a"
63
+ $SP -m pip install "datasets>=2.19.0,<3" jsonlines "av>=14.2.0" cmake \
64
+ "deepdiff>=7.0.1,<9" draccus==0.10.0 pynput pyserial \
65
+ "rerun-sdk>=0.21.0,<0.23.0" zmq
66
+ $SP -m pip install "numpy==1.26.4" "coverage==7.6.1" "typing_extensions>=4.15.0" "psutil==5.9.8"
67
+
68
+ log "Verifying simfoundry"
69
+ $SP -c "import torch, omnigibson, isaacsim, lerobot; \
70
+ print('torch', torch.__version__, torch.cuda.is_available()); \
71
+ print('omnigibson + lerobot ok')"
72
+
73
+ log "ALL DONE"