diff options
author | Nick White <git@njw.name> | 2020-04-20 13:40:17 +0100 |
---|---|---|
committer | Nick White <git@njw.name> | 2020-04-20 13:40:17 +0100 |
commit | 31889aebd8ef29b9fa8ba4f685365dee0d93abbf (patch) | |
tree | df0e7b90e0d895bcfdd8b4667baec3aa45e36422 /traintess.sh | |
parent | 6d43d44449380aa25987906d2a3d9dd97c906700 (diff) |
Add generate_line_box.py to this repo and reference it nicely in scripts
Diffstat (limited to 'traintess.sh')
-rwxr-xr-x | traintess.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/traintess.sh b/traintess.sh index e94ca9d..0841899 100755 --- a/traintess.sh +++ b/traintess.sh @@ -16,6 +16,7 @@ iterations=100000 oldtraining="$3" name="$4" +here=`dirname "$0"` mkdir -p "$name" @@ -52,7 +53,7 @@ find "$name/gt" "$name/eval" -type f -name '*txt' | while read i; do test -f "$d/$b.png" && n="$b.png" test -z "$n" && echo "Skipping $i as no corresponding image found" && continue test -f "$d/$b.box" && echo "Skipping $i as box file already present" && continue - python ~/bigboy/othertools/generate_line_box.py -i "$d/$n" -t "$i" > "$d/$b.box" || exit 1 + python "${here}/generate_line_box.py" -i "$d/$n" -t "$i" > "$d/$b.box" || exit 1 done echo "Making unicharset" |