From 31889aebd8ef29b9fa8ba4f685365dee0d93abbf Mon Sep 17 00:00:00 2001 From: Nick White Date: Mon, 20 Apr 2020 13:40:17 +0100 Subject: Add generate_line_box.py to this repo and reference it nicely in scripts --- testtraining.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testtraining.sh') diff --git a/testtraining.sh b/testtraining.sh index 64d39bd..686dae8 100755 --- a/testtraining.sh +++ b/testtraining.sh @@ -4,6 +4,7 @@ usage="Usage: $0 traineddata evaldir" test $# -ne 2 && echo "$usage" && exit 1 evaldir="$2" +here=`dirname "$0"` # Make box files find "$evaldir" -type f -name '*txt' | while read i; do @@ -14,7 +15,7 @@ find "$evaldir" -type f -name '*txt' | while read i; do test -f "$d/$b.box" && continue test -f "$d/${b}_lstmf.lstmf" && continue - python ~/bigboy/othertools/generate_line_box.py -i "$d/$b.png" -t "$i" > "$d/$b.box" || exit 1 + python "${here}/generate_line_box.py" -i "$d/$b.png" -t "$i" > "$d/$b.box" || exit 1 done -- cgit v1.2.1-24-ge1ad