turkic-ocr-code / scripts /r5_print /r5_print_fetch_all3.sh
treoa's picture
Release 1
24aaa76
Raw History Blame Contribute Delete
611 Bytes
#!/bin/bash
# Download-only driver, round 3: more candidates per language (login node, nice'd), resumes from existing meta.json files.
CODE=/path/to/TURKIC_OCR_CODE
DATA=/path/to/TURKIC_OCR_DATA
RAW=$DATA/data/raw/r5_print
CAND=$RAW/_select
PY=$CODE/.venv_print/bin/python
f() { nice -n 10 env -u HF_TOKEN -u HUGGING_FACE_HUB_TOKEN $PY -I $CODE/scripts/r5_print/r5_print_fetch.py cand $CAND $RAW $1 $2; }
( f sah_Cyrl 180; f bak_Cyrl 180; f tuk_Latn 180 ) &
( f tat_Cyrl 180; f kir_Cyrl 180; f uzn_Cyrl 180 ) &
( f kaz_Cyrl 160; f uzn_Latn 160 ) &
( f azj_Latn 160; f tur_Latn 120 ) &
wait
echo fetch_all3_done