在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):guillaumegenthial/im2latex开源软件地址(OpenSource Url):https://github.com/guillaumegenthial/im2latex开源编程语言(OpenSource Language):Python 98.5%开源软件介绍(OpenSource Introduction):Im2LatexSeq2Seq model with Attention + Beam Search for Image to LaTeX, similar to Show, Attend and Tell and Harvard's paper and dataset. Check the blog post. InstallInstall pdflatex (latex to pdf) and ghostsript + magick (pdf to png) on Linux
(takes a while ~ 10 min, installs from source) On Mac, assuming you already have a LaTeX distribution installed, you should have pdflatex and ghostscript installed, so you just need to install magick. You can try
Getting StartedWe provide a small dataset just to check the pipeline. To build the images, train the model and evaluate
You should observe that the model starts to produce reasonable patterns of LaTeX after a few minutes. DataWe provide the pre-processed formulas from Harvard but you'll need to produce the images from those formulas (a few hours on a laptop).
Alternatively, you can download the prebuilt dataset from Harvard and use their preprocessing scripts found here Training on the full datasetIf you already did
Or, to build the images from the formulas, train the model and evaluate, run
Details
(To get more information on the arguments, run)
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论