forked from guillaumegenthial/im2latex
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
52 lines (41 loc) · 1.49 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
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 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
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; \
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