File size: 1,255 Bytes
01bdde9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
set -euo pipefail
BASE=/mnt/cpfs/shared/outputs/peter/lffbench/20261025-0615-v1.4-backfill
J=$BASE/job
L=$J/source
EPY=/mnt/cpfs/workspace/env/zeva-cosmos-cu128/bin/python
export OMP_NUM_THREADS=1 LP_NUM_THREADS=1 MKL_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 PYTHONUNBUFFERED=1
export PYTHONPATH=$L:/mnt/cpfs/workspace/RSS/LIBERO-Recovery/LIBERO
cd "$L"
"$EPY" "$J/prepare_verified.py"
for prefix in delta legacy; do
  if [ "$prefix" = delta ]; then RAW=$BASE/verified_raw; else RAW=$BASE/legacy_verified_raw; fi
  "$EPY" "$L/scripts/lerobot_export.py" plan --work "$BASE/${prefix}_work" \
    --raw "$RAW" --runs-root "$J/runs_index" --paper "$J/paper" \
    --task-set "$L/sets/main_v2_1inst.txt" --repo-id "lffbench/${prefix}-backfill"
  seq 0 23 | xargs -P 24 -I{} bash -c '"$1" "$2/scripts/lerobot_export.py" shard --work "$3/${5}_work" --shard "$4" --nshards 24 --threads 2 > "$3/job/logs/${5}_shard_$4.log" 2>&1' _ "$EPY" "$L" "$BASE" {} "$prefix"
  "$EPY" "$L/scripts/lerobot_export.py" merge --work "$BASE/${prefix}_work" --nshards 24 --out "$BASE/${prefix}_dataset" > "$J/logs/merge_${prefix}.log" 2>&1
done
"$EPY" "$J/merge_cumulative.py" > "$J/logs/merge_cumulative.log" 2>&1
echo 'EXPORT COMPLETE; validation and publication pending'