Download scripts/r5_testpass2/tp2_kohtd_score.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 1.59 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_testpass2/tp2_kohtd_score.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_testpass2/tp2_kohtd_score.sbatch
-
curl -L -o tp2_kohtd_score.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_testpass2/tp2_kohtd_score.sbatch
1.59 kB
| #!/bin/bash | |
| #SBATCH --job-name=tp2_kohtd_score | |
| #SBATCH --partition=ZEN4 | |
| #SBATCH --cpus-per-task=4 | |
| #SBATCH --mem=32G | |
| #SBATCH --time=01:00:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # Test pass 2, amendment 4: rerun of the two FAILED steps of job 55347 only (the scorer skipped the prediction files because they were | |
| # written less than --settle 20 s before it ran; the comparison then found no score file). Same commands and settings; no prediction. | |
| set -u | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| D=/path/to/TURKIC_OCR_DATA | |
| T=$D/outputs/r5/testpass2 | |
| G=$T/GATE_testpass2_started.txt | |
| S=$CODE/scripts/r5_testpass2 | |
| export OMP_NUM_THREADS=1 | |
| hostname; date -u | |
| $CODE/.venv_kraken/bin/python -I $CODE/scripts/r5eval/score.py --preds $T/preds/m2lf_kohtd_test --registry $D/data/processed/r5/evalsets.json \ | |
| --out $T/scores/m2lf_kohtd_test --workers 2 --test-pass --gate-file $G --page-preds $T/no_page_preds | |
| echo "=== score exit $? $(date -u)" | |
| $CODE/.venv_kraken/bin/python -I $S/tp2_kohtd_compare.py --m2lf-greedy $T/scores/m2lf_kohtd_test/A1/long2x_labelfree/kohtd_test.json \ | |
| --m2lf-lm $T/scores/m2lf_kohtd_test/A1/long2x_labelfree_lm_gated/kohtd_test.json --m1 $D/outputs/r5/scores/paddleocr_vl_1_6/leader/kohtd_test.json \ | |
| --m2ll-greedy $D/outputs/r5/scores/A1/long2x/kohtd_test.json --m2ll-lm $D/outputs/r5/scores/A1/long2x_lm_gated/kohtd_test.json \ | |
| --gate-file $G --out $T/kohtd/kohtd_compare.json | |
| echo "=== compare exit $? $(date -u)" | |
| $CODE/.venv_kraken/bin/python -I $S/tp2_per_language.py --root $T --out $T/per_language_cluster.json | |
| echo "=== per-language exit $? $(date -u)" | |