Download scripts/r5_print/r5_print_fetch_all3.sh from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 611 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_print/r5_print_fetch_all3.sh
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_print/r5_print_fetch_all3.sh
-
curl -L -o r5_print_fetch_all3.sh https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_print/r5_print_fetch_all3.sh
611 Bytes
| # 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 | |