forked from weinman/cnn_lstm_ctc_ocr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (26 loc) · 723 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
all: mjsynth-download mjsynth-tfrecord train
demo: train
mjsynth-download: mjsynth-wget mjsynth-unpack
mjsynth-wget:
mkdir -p data
cd data ; \
wget http://www.robots.ox.ac.uk/~vgg/data/text/mjsynth.tar.gz
mjsynth-unpack:
mkdir -p data/images
# strip leading mnt/ramdisk/max/90kDICT32px/
tar xzvf data/mjsynth.tar.gz \
--strip=4 \
-C data/images
mjsynth-tfrecord:
mkdir -p data/train data/val data/test
cd src ; python mjsynth-tfrecord.py
train:
cd src ; python train.py # use --help for options
monitor:
tensorboard --logdir=data/model --port=8008
test:
cd src ; python test.py # use --help for options
evaluate:
cd src ; python evaluate.py # use --help for options
clean:
rm -rf data/model