kba / kraken-docker

Docker container for the kraken OCR engine
https://hub.docker.com/r/kbai/kraken/
MIT License
5 stars 6 forks source link

Include clstm #5

Open kba opened 7 years ago

crytoy commented 7 years ago

Have you integrated CLSTM? How can I run ( train.sh )?

kba commented 7 years ago

No, I haven't, but if you want to run clstm in docker, there's this PR and a container on dockerhub of xlight's clstm fork

crytoy commented 7 years ago

I have downloaded your docker of kraken, and also downloaded xligh docker of clstm, but now how do I use Kraken's train.sh or train using clstm?

kba commented 7 years ago

If by train.sh you mean the shell script by @mittagessen, it contains this:

#!/bin/bash
set -x
set -a
sort -R manifest.txt > /tmp/manifest2.txt
sed 1,100d /tmp/manifest2.txt > train.txt
sed 100q /tmp/manifest2.txt > test.txt

report_every=1000
save_every=1000
maxtrain=50000
target_height=48
dewarp=center
display_every=1000
test_every=1000
hidden=100
lrate=1e-4
save_name=arabic
clstmocrtrain train.txt test.txt

You have to convert this into a docker call, see the README.md in https://github.com/tmbdev/clstm/pull/121 for the basic idea. (Note to self: Should merge that one one of these days)