B111ue commited on
Commit
b39cb38
·
verified ·
1 Parent(s): 2e50386

Upload strict640x480-v2/code/wait_and_evaluate_all5.sh with huggingface_hub

Browse files
strict640x480-v2/code/wait_and_evaluate_all5.sh ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # Queue a formal 100-seed All-5 evaluation without racing the corresponding
3
+ # training process. Each watcher is pinned to the GPU vacated by its method.
4
+ set -euo pipefail
5
+
6
+ method="${1:?method: dino|stereo|moe|local_arca}"
7
+ gpu="${2:?physical GPU index}"
8
+ root=/workspace/RoboFactory/runs/strict640x480_v2
9
+ py=/workspace/venvs/robofactory-act/bin/python3.10
10
+
11
+ case "$method" in
12
+ dino)
13
+ checkpoint="$root/results/frozen_dinov3_act_all5_80k/checkpoint_080000.pt"
14
+ evaluator=/workspace/act_liftbarrier/evaluate_shared_act.py
15
+ result_dir="$root/results/frozen_dinov3_act_all5_80k/formal_heldout_100"
16
+ ;;
17
+ stereo)
18
+ checkpoint="$root/results/stereo_cross_relbias_all5_80k/checkpoint_080000.pt"
19
+ evaluator=/workspace/act_liftbarrier/evaluate_stereo_act.py
20
+ result_dir="$root/results/stereo_cross_relbias_all5_80k/formal_heldout_100"
21
+ ;;
22
+ moe)
23
+ checkpoint="$root/results/stereo_ffn_moe_all5_80k/checkpoint_080000.pt"
24
+ evaluator=/workspace/act_liftbarrier/evaluate_stereo_act.py
25
+ result_dir="$root/results/stereo_ffn_moe_all5_80k/formal_heldout_100"
26
+ ;;
27
+ local_arca)
28
+ checkpoint="$root/results/local_arca_all5_80k/checkpoint_080000.pt"
29
+ evaluator=/workspace/act_liftbarrier/evaluate_stereo_act.py
30
+ result_dir="$root/results/local_arca_all5_80k/formal_heldout_100"
31
+ ;;
32
+ *) echo "unknown method: $method" >&2; exit 2 ;;
33
+ esac
34
+
35
+ while [[ ! -s "$checkpoint" ]]; do
36
+ sleep 60
37
+ done
38
+
39
+ mkdir -p "$result_dir"
40
+ for task in lift_barrier camera_alignment three_robots_stack_cube long_pipeline_delivery take_photo; do
41
+ # A single worker owns the freed GPU, avoiding concurrent simulator processes
42
+ # silently contending for one policy replica. The seed file is frozen and
43
+ # verified by the evaluator before any rollout starts.
44
+ CUDA_VISIBLE_DEVICES="$gpu" "$py" -u "$evaluator" \
45
+ --checkpoint "$checkpoint" --task "$task" \
46
+ --seed-file "$root/heldout_seeds/$task.json" --episodes 100 \
47
+ --workers 1 --devices 0 --max-steps 1500 \
48
+ --output "$result_dir/eval_${task}.json"
49
+ done
50
+
51
+ printf 'FORMAL_ALL5_EVALUATION_COMPLETE %s\n' "$method"