Simple-LaTeX-OCR

我要开发同款
匿名用户2024年07月31日
50阅读

技术信息

开源地址
https://modelscope.cn/models/chaodreaming/Simple-LaTeX-OCR

作品详情

Simple-LaTeX-OCR

The ecoder is resetv2+simplevit, the decoder is trasformer, the attetio mechaism uses flashattetio2.0 from pytorch2.0, ad the dataset size is 112 millio

Olie experiece

https://huggigface.co/spaces/chaodreamig/Simple-LaTeX-OCR

https://www.modelscope.c/studios/chaodreamig/Simple-LaTeX-OCR/summary

Istall the package simple_latex_ocr:

pip istall simple_latex_ocr

Use from withi Pytho

from simple_latex_ocr.models import Latex_OCR
model = Latex_OCR()
img_path = "tests/test_files/5.pg"
result = model.predict(img_path)
prit(result['formula'])
prit(result['cofidece'])
prit(result['elapse'])

Used by commad lie

$ simple_latex_ocr tests/test_files/2.pg

Used by api

$ pytho -m simple_latex_ocr.api.ru

#You ca use test.py to iitiate a request for verificatio

Cotributio

Cotributios of ay kid are welcome.

Ackowledgmet

Code take ad modified from lukas-blecher, RapidAI,ultralytics

功能介绍

Simple-LaTeX-OCR The encoder is resnetv2+simplevit, the decoder is transformer, the attention mechan

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论