#!/bin/bash # lane/invact step 4, second round: the head sees the player's inventory with no screen open, and a free-play scenario # (nothing to craft) joins DAgger cd $HOME/dev/mcsr-speedrun export NETHERITE=$HOME/dev/nv2-lanes/invact CUDA_VISIBLE_DEVICES=2 P="taskset -c 32-63,96-127 .venv/bin/python" I=data/invhead mkdir -p $I/eval4 S=table,pick,furnace,loot,free cat > $I/queue4a.jobs < $I/dagger2-scratch.log 2>&1 $P scripts/invhead_dagger.py --init $I/vpt-ev.pt --train-scen $S --out $I/dagger2-vpt.pt > $I/dagger2-vpt.log 2>&1 JOBS xargs -P 2 -I{} -d '\n' bash -c '{}' < $I/queue4a.jobs E="$P scripts/invact_eval.py --n 16 --scen $S --drivers head" cat > $I/queue4b.jobs < $I/eval4/dagger2-scratch-sampled.log 2>&1 $E --head $I/dagger2-vpt.pt --out $I/eval4/dagger2-vpt-sampled.json > $I/eval4/dagger2-vpt-sampled.log 2>&1 $E --head $I/dagger2-scratch.pt --greedy --out $I/eval4/dagger2-scratch-greedy.json > $I/eval4/dagger2-scratch-greedy.log 2>&1 $E --head $I/dagger2-vpt.pt --greedy --out $I/eval4/dagger2-vpt-greedy.json > $I/eval4/dagger2-vpt-greedy.log 2>&1 $P scripts/invact_eval.py --n 16 --scen free --drivers macro,expert --out $I/eval4/free-base.json > $I/eval4/free-base.log 2>&1 $P scripts/invact_eval.py --n 16 --scen free --drivers head --head $I/dagger-scratch.pt --out $I/eval4/free-dagger1-scratch.json > $I/eval4/free-dagger1-scratch.log 2>&1 JOBS xargs -P 2 -I{} -d '\n' bash -c '{}' < $I/queue4b.jobs echo QUEUE4 DONE