Skip to content

shchae7/im2latex

 
 

Repository files navigation

Im2Latex

Neural Model converting Image to Latex.

Install Prerequsites

pip3 install -r requirements.txt

Quick Start

We provide a small preprocessed dataset (./sample_data/) to check the pipeline. To train and evaluate model in this sample dataset:

python3 train.py --path ./

Train on full dataset

Download the prebuilt dataset from Harvard and use their preprocessing scripts found here.

After that, to train and evaluate model on full dataset, you can just pass the full dataset path to train.py:

python3 train.py --data_path=FULL_DATASET_PATH

Evaluating

python3 evaluate.py --model_path=MODEL_PATH \
     --data_path=FULL_DATASET_PATH

Reference

What You Get Is What You See:A Visual Markup Decompiler

The Official Torch implemention

A Tensorflow implemention

About

Pytorch implemention of paper https://arxiv.org/pdf/1609.04938v1.pdf evaluate.py added

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.1%
  • JavaScript 13.9%