forked from LinXueyuanStdio/LaTeX_OCR_PRO
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
73 lines (60 loc) · 2.97 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
install-linux:
sudo pip install -r requirements.txt
sudo apt-get install texlive-latex-base
sudo apt-get install texlive-latex-extra
sudo apt-get update
sudo apt-get install ghostscript
sudo apt-get install libgs-dev
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar -xvf ImageMagick.tar.gz
cd ImageMagick-7.*; \
./configure --with-gslib=yes; \
make; \
sudo make install; \
sudo ldconfig /usr/local/lib
cd ..
rm ImageMagick.tar.gz
rm -r ImageMagick-7.*
install-mac:
sudo pip install -r requirements.txt
wget http://www.imagemagick.org/download/ImageMagick.tar.gz
tar -xvf ImageMagick.tar.gz
cd ImageMagick-7.*; \
./configure --with-gslib=yes; \
make;\
sudo make install; \
cd ..
rm ImageMagick.tar.gz
rm -r ImageMagick-7.*
build-small:
python build.py --data=configs/data_small.json --vocab=configs/vocab_small.json
train-small:
python train.py --data=configs/data_small.json --vocab=configs/vocab_small.json --training=configs/training_small.json --model=configs/model.json --output=results/small/
eval-small:
python evaluate_txt.py --results=results/small/
python evaluate_img.py --results=results/small/
small: build-small train-small eval-small
build:
python build.py --data=configs/data.json --vocab=configs/vocab.json
train:
python train.py --data=configs/data.json --vocab=configs/vocab.json --training=configs/training.json --model=configs/model.json --output=results/full/
eval:
python evaluate_txt.py --results=results/full/
python evaluate_img.py --results=results/full/
full: build train eval
train_full:
python train.py --data=data/full/data.json --vocab=data/full/vocab.json --training=configs/training.json --model=configs/model.json --output=results/full/
train_small:
python train.py --data=data/small/data.json --vocab=data/small/vocab.json --training=configs/training.json --model=configs/model.json --output=results/small/
train3_full:
python3 train.py --data=data/full/data.json --vocab=data/full/vocab.json --training=configs/training.json --model=configs/model.json --output=results/full/
train3_small:
python3 train.py --data=data/small/data.json --vocab=data/small/vocab.json --training=configs/training.json --model=configs/model.json --output=results/small/
train_full_GAN:
python train_GAN.py --data=data/full/data.json --vocab=data/full/vocab.json --training=configs/training.json --model=configs/model.json --output=results/full/
train_small_GAN:
python train_GAN.py --data=data/small/data.json --vocab=data/small/vocab.json --training=configs/training.json --model=configs/model.json --output=results/small/
train3_full_GAN:
python3 train_GAN.py --data=data/full/data.json --vocab=data/full/vocab.json --training=configs/training.json --model=configs/model.json --output=results/full/
train3_small_GAN:
python3 train_GAN.py --data=data/small/data.json --vocab=data/small/vocab.json --training=configs/training.json --model=configs/model.json --output=results/small/