File size: 1,374 Bytes
24aaa76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
#SBATCH --job-name=tp2_kzb_fetch
#SBATCH --partition=ZEN4
#SBATCH --cpus-per-task=4
#SBATCH --mem=8G
#SBATCH --time=01:00:00
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# Owner-approved (25 Nov 2026): download the handwritten config of Omar-2002/kz_benchmark_data at the pinned revision (no token) into
# DATA/data/raw/kz_benchmark_hw, sha256 of every file, checksum file; then the page list and 1280 px detector copies (no model).
set -u
CODE=/path/to/TURKIC_OCR_CODE
D=/path/to/TURKIC_OCR_DATA
K=$D/outputs/r5/testpass2/kzb
export HF_HOME=$D/hf_cache/kzb_home HF_HUB_DISABLE_TELEMETRY=1
unset HF_TOKEN HUGGING_FACE_HUB_TOKEN HF_HUB_OFFLINE
cd $D/tmp
hostname; date -u
$CODE/.venv_dl/bin/python -I $CODE/scripts/r5_testpass2/tp2_kzb_fetch.py fetch --dest $D/data/raw/kz_benchmark_hw --out $K/fetch.json \
  --listing $K/listing.json --pattern "real_handwritten_data/data.csv" --pattern "real_handwritten_data/images/*"
echo "=== fetch exit $?"
cd $D/data/raw/kz_benchmark_hw && sha256sum README.md real_handwritten_data/data.csv real_handwritten_data/images/*.jpg > $D/checksums/kz_benchmark_hw.sha256
echo "=== sha256 exit $? files $(wc -l < $D/checksums/kz_benchmark_hw.sha256)"
cd $D/tmp
$CODE/.venv_kraken/bin/python -I $CODE/scripts/r5_testpass2/tp2_kzb_prep.py --src $D/data/raw/kz_benchmark_hw --outdir $K
echo "=== prep exit $? $(date -u)"