Download code/plans/fa2/cache_queue.sh from thucdangvan020999/aurora-wake-model: direct link, hf CLI and curl.
- Browser
- Download file 944 Bytes
-
https://huggingface.co/thucdangvan020999/aurora-wake-model/resolve/main/code/plans/fa2/cache_queue.sh
- Command line
-
hf download hf://thucdangvan020999/aurora-wake-model/code/plans/fa2/cache_queue.sh
-
curl -L -o cache_queue.sh https://huggingface.co/thucdangvan020999/aurora-wake-model/resolve/main/code/plans/fa2/cache_queue.sh
944 Bytes
| cd /home/user/Downloads/vita-kws/plans_local/fa2; source /home/user/Downloads/vita-kws/.venv/bin/activate | |
| while pgrep -f cache_videv.sh >/dev/null; do sleep 30; done | |
| for m in hvcA3 hvo3 hvo2; do python3 fa_cache.py /home/user/Downloads/vita-kws/runs/$m/best.pt $m /data/ext/vita_fa2/vi_dev2.txt 5; done | |
| # mine split: wait for its downloads, then cache with the two strict-option detectors + hvo2 | |
| while ! grep -q "ALL DONE" /data/ext/vita_fa2/dl.log; do sleep 60; done | |
| python3 - <<'P' | |
| import json,glob | |
| W="/data/ext/vita_fa2"; ids={r['id'] for r in json.load(open(W+'/picked.json')) if r['split']=='mine'} | |
| fs=[f for f in sorted(glob.glob(W+'/mine/*')) if not f.endswith('.part') and f.split('/')[-1].split('.')[0] in ids] | |
| open(W+'/mine.txt','w').write('\n'.join(fs)+'\n') | |
| P | |
| for m in hvcA3 hvo3 hvo2; do python3 fa_cache.py /home/user/Downloads/vita-kws/runs/$m/best.pt $m /data/ext/vita_fa2/mine.txt 5; done | |
| echo "QUEUE DONE" | |