Download scripts/r5_print/r5_print_audit_prep.sh from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 480 Bytes
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_print/r5_print_audit_prep.sh
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_print/r5_print_audit_prep.sh
-
curl -L -o r5_print_audit_prep.sh https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_print/r5_print_audit_prep.sh
480 Bytes
| # Audit helper: 50 random test lines per language-script as numbered montage sheets (10 lines per sheet) + label text. | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| DATA=/path/to/TURKIC_OCR_DATA | |
| OUT=$DATA/outputs/r5/print_audit | |
| mkdir -p $OUT | |
| for L in "$@"; do | |
| $CODE/.venv_print/bin/python -I $CODE/scripts/r5_print/r5_print_montage.py $DATA/data/processed/r5/print_real/_sidecars/$L.jsonl test 50 20261121 $OUT/$L > $OUT/${L}_labels.txt | |
| echo $L $(ls $OUT/${L}_*.png | wc -l) | |
| done | |