Download tools/proof-common-wt.sh from witcheer/microduck-skill-tree: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/datasets/witcheer/microduck-skill-tree/resolve/main/tools/proof-common-wt.sh
- Command line
-
hf download hf://datasets/witcheer/microduck-skill-tree/tools/proof-common-wt.sh
-
curl -L -o proof-common-wt.sh https://huggingface.co/datasets/witcheer/microduck-skill-tree/resolve/main/tools/proof-common-wt.sh
1.31 kB
| # proof-common-wt.sh (2026-10-11): proof-common.sh with a selectable checkout (WT, default our patched clone). | |
| # source after setting TASK, OUT and optionally WT. each take copies the checkpoint into its own tmp dir (parallel-safe). | |
| exec > >(tee -a $OUT.log) 2>&1 | |
| set -uo pipefail | |
| export PATH=/home/witcheer/.cargo/bin:/home/witcheer/.local/bin:$PATH | |
| export MUJOCO_GL=egl PYTHONUNBUFFERED=1 | |
| cd ${WT:-/home/witcheer/Pollen/microduck_rl} | |
| mkdir -p $OUT | |
| play() { local name=$1 task=$2 ck=$3 vlen=$4; shift 4 | |
| local tmp=/home/witcheer/Pollen/clips/tmp-play-$(basename $OUT)-$name; rm -rf $tmp | |
| echo "=== $(date -u +%T) clip $name ($task) ==="; local t0=$(date +%s) | |
| mkdir -p $tmp; cp "$ck" $tmp/; cp -r "$(dirname "$ck")/params" $tmp/ 2>/dev/null | |
| timeout 900 uv run python headless_play.py "$task" --checkpoint-file "$tmp/$(basename "$ck")" --num-envs 1 --video True --video-length $vlen \ | |
| --video-width 1280 --video-height 720 "$@" > $OUT/$name.full.log 2>&1 < /dev/null | |
| echo "rc=$? in $(( $(date +%s)-t0 )) s" | |
| grep -a "headless_play\|Loading\|RESET\|Error\|error" $OUT/$name.full.log > $OUT/$name.log | |
| if [ -f "$tmp/videos/play/rl-video-step-0.mp4" ]; then mv "$tmp/videos/play/rl-video-step-0.mp4" $OUT/$name.mp4; else echo "NO_CLIP $name"; tail -n 15 $OUT/$name.full.log; fi | |
| rm -rf $tmp | |
| } | |