Download scripts/r5_showcase/showcase_gen_final.sbatch from treoa/turkic-ocr-code: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_showcase/showcase_gen_final.sbatch
- Command line
-
hf download hf://treoa/turkic-ocr-code/scripts/r5_showcase/showcase_gen_final.sbatch
-
curl -L -o showcase_gen_final.sbatch https://huggingface.co/treoa/turkic-ocr-code/resolve/main/scripts/r5_showcase/showcase_gen_final.sbatch
1.21 kB
| #SBATCH --job-name=showcase_gen_final | |
| #SBATCH --partition=ZEN4 | |
| #SBATCH --cpus-per-task=16 | |
| #SBATCH --mem=64G | |
| #SBATCH --time=01:00:00 | |
| #SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out | |
| # Showcase job A: rebuild the typed "_T" validation pages and dump the generator stages of three handwritten validation pages | |
| # (scripts/r5_showcase/showcase_gen.py). Validation data only. Same generator environment and font folder as r5_production.sbatch. | |
| # Stage pages: kk 18 = the Kazakh medium-strength phone-capture validation page with the most scene elements (figure, stamp; tie with | |
| # mixed_kk_m_000027 broken by the lower index), kk 1 = the worked-example page of the showcase, uz_latn 11 = the Latin-script page. | |
| set -u | |
| CODE=/path/to/TURKIC_OCR_CODE | |
| O=/path/to/TURKIC_OCR_DATA/outputs/r5/showcase/final | |
| echo "job $SLURM_JOB_ID host $(hostname) start $(date -u +%Y-%m-%dT%H:%M:%SZ)" | |
| mkdir -p $O/gen | |
| export OMP_NUM_THREADS=1 PAGESYNTH_FONTS=$CODE/src/pagesynth/assets/fonts PYTHONDONTWRITEBYTECODE=1 | |
| $CODE/.venv_gen/bin/python -I $CODE/scripts/r5_showcase/showcase_gen.py --selection $O/selection.json --out $O/gen --stage_pages kk:18,kk:1,uz_latn:11 | |
| echo "=== exit $? $(date -u +%Y-%m-%dT%H:%M:%SZ)" | |