Unverified Commit bc42ad64 authored by Nathanael Philipp's avatar Nathanael Philipp
Browse files

Add all to multi training.

parent cc34793f
......@@ -33,15 +33,15 @@ cd /home/nphilipp/ws/smarthec
# evaluate precision/recall and mAP:
for dataset in alt.mdl/**/*.GT-COCO/*.coco.json; do
mkdir -p $(dirname ${dataset//GT/PRED})
python /home/nphilipp/src/ocrd_segment/maskrcnn-cli/formdata.py -cc --model ./neu.mdl.h5 predict --dataset $dataset --dataset-pred ${dataset//GT/PRED}
python /home/nphilipp/src/ocrd_segment/maskrcnn-cli/formdata.py -cc --model ./all.h5 predict --dataset $dataset --dataset-pred ${dataset//GT/PRED}
done
for dataset in neu.mdl/**/*.GT-COCO/*.coco.json; do
mkdir -p $(dirname ${dataset//GT/PRED})
python /home/nphilipp/src/ocrd_segment/maskrcnn-cli/formdata.py -cc --model ./neu.mdl.h5 predict --dataset $dataset --dataset-pred ${dataset//GT/PRED}
python /home/nphilipp/src/ocrd_segment/maskrcnn-cli/formdata.py -cc --model ./all.h5 predict --dataset $dataset --dataset-pred ${dataset//GT/PRED}
done
echo finished
# next steps (in base OCR-D workspaces, off-cluster):
# - `maskrcnn-formdata merge` of all target-specific GT/pred COCOs
# - `maskrcnn-formdata merge` of all target-specific GT/pred COCOs
# into single GT/pred COCO, replacing alpha-masked image references by originals
# - `maskrcnn-formdata compare` of GT vs pred in all workspaces
# (followed by `extract-evaluation-logs.sh` to aggregate into CSV)
......
......@@ -14,4 +14,9 @@ STATUS=($(sbatch $DEP smarthec_training_multi.slurm neu.mdl))
JOB1=${STATUS[3]}
DEP="-d afterok:$JOB1"
# finetrain alt.mdl + neu.mdl
STATUS=($(sbatch $DEP smarthec_training_multi.slurm all))
JOB1=${STATUS[3]}
DEP="-d afterok:$JOB1"
sbatch $DEP smarthec_prediction_multi.slurm
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment