Upload strict640x480-v2/code/accelerate_strict_lpd_collection.sh with huggingface_hub
Browse files
strict640x480-v2/code/accelerate_strict_lpd_collection.sh
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Complete the remaining 52 strict LPD demonstrations in parallel without
|
| 3 |
+
# touching the already-collected formal corpus. The three source directories
|
| 4 |
+
# are audited together before any merge is allowed.
|
| 5 |
+
set -euo pipefail
|
| 6 |
+
|
| 7 |
+
ROOT="/workspace/RoboFactory/runs/strict640x480_v2_lpd_accel"
|
| 8 |
+
COLLECT="/workspace/act_liftbarrier/run_strict_task_collection.sh"
|
| 9 |
+
AUDIT="/workspace/act_liftbarrier/audit_strict640x480_corpus.py"
|
| 10 |
+
PYTHON="/workspace/venvs/robofactory-act/bin/python"
|
| 11 |
+
|
| 12 |
+
if [[ -e "$ROOT" ]]; then
|
| 13 |
+
echo "Refusing to reuse existing acceleration root: $ROOT" >&2
|
| 14 |
+
exit 2
|
| 15 |
+
fi
|
| 16 |
+
mkdir -p "$ROOT"
|
| 17 |
+
|
| 18 |
+
# One successful trajectory per worker. The seed ranges are deliberately
|
| 19 |
+
# disjoint from the original LPD collection and from one another.
|
| 20 |
+
"$COLLECT" long_pipeline_delivery 1 18 "$ROOT/gpu1" 1700000 18 &
|
| 21 |
+
pid1=$!
|
| 22 |
+
"$COLLECT" long_pipeline_delivery 2 17 "$ROOT/gpu2" 1800000 17 &
|
| 23 |
+
pid2=$!
|
| 24 |
+
"$COLLECT" long_pipeline_delivery 3 17 "$ROOT/gpu3" 1900000 17 &
|
| 25 |
+
pid3=$!
|
| 26 |
+
wait "$pid1" "$pid2" "$pid3"
|
| 27 |
+
|
| 28 |
+
"$PYTHON" "$AUDIT" \
|
| 29 |
+
--task long_pipeline_delivery \
|
| 30 |
+
--data "$ROOT/*/worker_*.h5" \
|
| 31 |
+
--expected-episodes 52 \
|
| 32 |
+
--output "$ROOT/strict_audit.json"
|
| 33 |
+
touch "$ROOT/COMPLETE_52"
|
| 34 |
+
echo "LPD_ACCELERATION_COMPLETE"
|