Skip to content

Instantly share code, notes, and snippets.

@cwig
Created February 1, 2017 20:54
Show Gist options
  • Save cwig/315d212964542f7f1797d5fdd122891e to your computer and use it in GitHub Desktop.
Save cwig/315d212964542f7f1797d5fdd122891e to your computer and use it in GitHub Desktop.
git clone https://github.com/rwth-i6/returnn.git returnn_IAM
cd returnn_IAM/demos/mdlstm/IAM
rm IAM_lines/*
rm lines.txt
read -p "IAM username: " iam_username
wget http://www.fki.inf.unibe.ch/DBs/iamDB/data/lines/lines.tgz http://www.fki.inf.unibe.ch/DBs/iamDB/data/ascii/lines.txt --user $iam_username --ask-password
mkdir tmp_IAM_lines
tar -zxvf lines.tgz -C tmp_IAM_lines
find tmp_IAM_lines -name '*.png' -exec mv {} IAM_lines/ \;
rm -r tmp_IAM_lines
sed -i '252s|[#]||g' create_IAM_dataset.py
sed -i '253s|[#]||g' create_IAM_dataset.py
sed -i 's|config_demo|config_real|g' go.sh
sh go.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment