Neural Model converting Image to Latex.
pip3 install -r requirements.txt
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 ./
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
python3 evaluate.py --model_path=MODEL_PATH \
--data_path=FULL_DATASET_PATH
What You Get Is What You See:A Visual Markup Decompiler