Download scripts/r5_print/r5_print_fetch_all.sh from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 604 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_print/r5_print_fetch_all.sh
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_print/r5_print_fetch_all.sh
-
curl -L -o r5_print_fetch_all.sh https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_print/r5_print_fetch_all.sh
604 Bytes
| # Download-only driver (login node, nice'd). Three language groups in parallel; each group sequential. | |
| 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 | |
| run() { for cfg in "$@"; do 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 $cfg 100; done; } | |
| run sah_Cyrl bak_Cyrl tuk_Latn & | |
| run tat_Cyrl kir_Cyrl uzn_Cyrl & | |
| nice -n 10 $PY -I $CODE/scripts/r5_print/r5_print_fetch.py tbmm $RAW 28,27,26,25,24 2 20261121 & | |
| wait | |
| echo fetch_all_done | |