Set default exposure settings for grc training

This commit is contained in:
Nick White 2015-09-11 13:30:05 +01:00 committed by Zdenko Podobný
parent af9c969818
commit 796188072a
2 changed files with 5 additions and 2 deletions

View File

@ -1068,6 +1068,7 @@ set_lang_specific_parameters() {
WORD_DAWG_FACTOR=0.08
test -z "$FONTS" && FONTS=( "${GREEK_FONTS[@]}" ) ;;
grc )
test -z "$EXPOSURES" && EXPOSURES="-3 -2 -1 0 1 2 3"
test -z "$FONTS" && FONTS=( "${ANCIENT_GREEK_FONTS[@]}" ) ;;
hye ) test -z "$FONTS" && FONTS=( "${ARMENIAN_FONTS[@]}" ) ;;
iku ) test -z "$FONTS" && FONTS=( "${NORTH_AMERICAN_ABORIGINAL_FONTS[@]}" ) ;;
@ -1087,7 +1088,10 @@ set_lang_specific_parameters() {
TRAINING_DATA_ARGUMENTS+=" --mean_count=${MEAN_COUNT}"
fi
# Default to Latin fonts if none have been set
test -z "$FONTS" && test -z "$FONTS" && FONTS=( "${LATIN_FONTS[@]}" )
test -z "$FONTS" && FONTS=( "${LATIN_FONTS[@]}" )
# Default to 0 exposure if it hasn't been set
test -z "$EXPOSURES" && EXPOSURES=0
}
#=============================================================================

View File

@ -26,7 +26,6 @@ OVERWRITE=0
RUN_SHAPE_CLUSTERING=0
EXTRACT_FONT_PROPERTIES=1
WORKSPACE_DIR=`mktemp -d`
EXPOSURES=0
# Logging helper functions.
tlog() {