⬆ train-calamari-gt4histocr: Update to Calamari 1

master
Gerber, Mike 5 years ago
parent 5a51ca4f20
commit ccb7f34ab7

@ -1 +1 @@
Subproject commit f817209ba765464adb132a132774ea7856d53f4e
Subproject commit b0c0cd08551ba1828ea73833034188047f3e14ab

@ -1,2 +1,2 @@
calamari-ocr==0.3.5
tensorflow-gpu==1.13.1
calamari-ocr==1.0.1
tensorflow-gpu==2.0.0

@ -35,6 +35,17 @@ done
echo "Removing dta19/1882-keller_sinngedicht/04970.nrm.png (Broken PNG)"
rm -f $TMPDIR/dta19/1882-keller_sinngedicht/04970.*
# If we're just testing, keep just some files
if [ "$TEST" = 1 ]; then
num_pngs_wanted=2000
num_pngs=`find "$TMPDIR" -path "$TMPDIR/*/*/*.png" | wc -l`
num_pngs_to_delete=$(($num_pngs-$num_pngs_wanted))
echo "TEST = 1, Reducing dataset from $num_pngs to $num_pngs_wanted PNG files"
find "$TMPDIR" -path "$TMPDIR/*/*/*.png" | shuf -n $num_pngs_to_delete | xargs rm
fi
export PYTHONUNBUFFERED=1 # For python + tee
outdir=$DATA_SUBDIR/calamari-models/GT4HistOCR

Loading…
Cancel
Save