AsianPlayer/TriDrive / code /data /run_extract_pose_causal_nolock.sh
AsianPlayer's picture
download
raw
1.12 kB
#!/usr/bin/env bash
# cwm3/data/run_extract_pose_causal_nolock.sh — same loop as run_extract_pose_causal.sh but WITHOUT the exclusive GPU lock.
# Rationale (decisions.md 2026-09-10): RTMW inference is 1.08 ms/frame (~0.6 GPU-h total, <1.5 GB VRAM); the run is decode-bound
# (CPU). Holding /tmp/s13_gpu.lock for 4 wall-hours would block the Qwen3-VL extraction and the BATON experiments for no GPU gain.
# Exception scope: this script only; 4 decode workers to leave CPU for the lock holders.
set -u
PY=python
DIR="$(cd "$(dirname "$0")" && pwd)"
LOGD="$DIR/../results/pose_causal/logs"; mkdir -p "$LOGD"
DECODE_WORKERS="${DECODE_WORKERS:-4}"; MAX_MIN="${MAX_MIN:-30}"
while true; do
LOG="$LOGD/nolock_chunk_$(date -u +%Y%m%dT%H%M%SZ).log"
"$PY" "$DIR/extract_pose_causal.py" --all --max-minutes "$MAX_MIN" --decode-workers "$DECODE_WORKERS" >"$LOG" 2>&1
rc=$?
echo "[$(date -u +%FT%TZ)] chunk rc=$rc :: $(tail -1 "$LOG" | cut -c1-140)"
if [ "$rc" -eq 0 ]; then echo "ALL_DONE $(date -u +%FT%TZ)"; break; fi
if [ "$rc" -ne 3 ]; then echo "chunk rc=$rc (see $LOG); retry in 60 s"; sleep 60; fi
sleep 2
done

Xet Storage Details

Size:
1.12 kB
·
Xet hash:
9f1e7547793a52bebe9e0e730120995c54e24e3269e318cff90b4b6c51e33628

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.