mirror of
https://github.com/qurator-spk/train-calamari-gt4histocr.git
synced 2025-06-08 11:20:31 +02:00
🎨 calamari-models/train-calamari-gt4histocr: Introduce a training id
This commit is contained in:
parent
aadb3f5a53
commit
ad97f88b1e
1 changed files with 3 additions and 2 deletions
5
train.sh
5
train.sh
|
@ -48,7 +48,8 @@ fi
|
||||||
|
|
||||||
export PYTHONUNBUFFERED=1 # For python + tee
|
export PYTHONUNBUFFERED=1 # For python + tee
|
||||||
|
|
||||||
outdir=$DATA_SUBDIR/calamari-models/GT4HistOCR
|
training_id=`date -Iminutes`
|
||||||
|
outdir=$DATA_SUBDIR/calamari-models/GT4HistOCR/$training_id
|
||||||
mkdir -p $outdir
|
mkdir -p $outdir
|
||||||
|
|
||||||
export TF_FORCE_GPU_ALLOW_GROWTH=true # To prevent TF from taking all GPU memory
|
export TF_FORCE_GPU_ALLOW_GROWTH=true # To prevent TF from taking all GPU memory
|
||||||
|
@ -63,4 +64,4 @@ calamari-cross-fold-train \
|
||||||
--n_folds=5 \
|
--n_folds=5 \
|
||||||
--max_parallel_models=3 \
|
--max_parallel_models=3 \
|
||||||
--display=0.01 \
|
--display=0.01 \
|
||||||
2>&1 | tee $outdir/train.`date -Iminutes`.log
|
2>&1 | tee $outdir/train.${training_id}.log
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue