1 Star 0 Fork 7

罗浩楠/LaTeX_OCR_PRO

forked from 大漠/LaTeX_OCR_PRO 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
makefile 2.97 KB
一键复制 编辑 原始数据 按行查看 历史
ジ兮尘 提交于 2019-08-09 09:42 . Update makefile
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/
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/haonan-online/LaTeX_OCR_PRO.git
git@gitee.com:haonan-online/LaTeX_OCR_PRO.git
haonan-online
LaTeX_OCR_PRO
LaTeX_OCR_PRO
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385