File size: 1,011 Bytes
24aaa76 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/bash
#SBATCH --job-name=j2_c2_make
#SBATCH --partition=ZEN4
#SBATCH --qos=nu-zen4
#SBATCH --gres=none
#SBATCH --cpus-per-task=2
#SBATCH --mem=16G
#SBATCH --time=00:30:00
#SBATCH --output=/path/to/TURKIC_OCR_DATA/logs/%x_%j.out
# J2 controls 2: contrast-stretched copies of the first 300 screen crops, and the 200 control words in two OFL handwriting fonts (CPU).
set -eu
CODE=/path/to/TURKIC_OCR_CODE
DATA=/path/to/TURKIC_OCR_DATA
OUT=$DATA/outputs/j11_controls_2
mkdir -p $OUT
$CODE/.venv/bin/python -I $CODE/scripts/j2/make_controls2_set.py $DATA/outputs/j11_stage1_kohtd/screen_set_v1.tsv \
$DATA/data/processed/kohtd_words_raw/KOHTD_dataset/HK_dataset/img $DATA/outputs/j11_positive_control/control_words.tsv \
$CODE/scripts/j2/contrast_stretch.py "$DATA/data/raw/fonts/Caveat/Caveat[wght].ttf" $DATA/data/raw/fonts/BadScript/BadScript-Regular.ttf $OUT
sha256sum $OUT/contrast_stored_screen_set_v1.tsv $OUT/contrast_stretch_screen_set_v1.tsv $OUT/fonts_screen_set_v1.tsv
echo "[j2_c2_make] done"
|