texifast

LaTeX and markdown OCR powered by texify, without bloated dependencies like torch or transformers.
Features
- Minimal dependency graph
- Compared to Optimum, texifast is faster (~20%) and has a smaller memory footprint (~20%). For details, see benchmark.
- Supports IOBinding features of ONNXRuntime and optimizes for CUDAExecutionProvider.
- Supports quantized/mixed precision models.
Installation
You must implicitly specify the required dependencies.
pip install texifast[cpu]
# or if you want to use CUDAExecutionProvider
pip install texifast[gpu]
⚠️⚠️⚠️
Do not install with
pip install texifast!!!
Quickstart
This quick start use the image in test folder, you can use whatever you like.
from texifast.model import TxfModel
from texifast.pipeline import TxfPipeline
model = TxfModel(
encoder_model_path="./encoder_model_quantized.onnx",
decoder_model_path="./decoder_model_merged_quantized.onnx",
)
texifast = TxfPipeline(model=model, tokenizer="./tokenizer.json")
print(texifast("./latex.png"))
You can download the quantized ONNX model here and the FP16 ONNX model here.
API
The full Python API documentation can be found here.
Credits
Metadata
Release files for texifast 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| texifast-0.1.3.tar.gz | 10.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| texifast-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.8 kB
Release files / texifast-0.1.3.tar.gz
| Download URL | texifast-0.1.3.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
df0692a107fc1276548e0abf0ef7951d57384494e72d1aba9c79f2a580139122
|
|
BLAKE2b-256 checksum How to use checksums |
db7fda084054871dbc6ba3a11fa2b04fdf17dad4c0cfc82e1d465d4011a7834a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Release files / texifast-0.1.3-py3-none-any.whl
| Download URL | texifast-0.1.3-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cafae98c418d0b378de1f455b8fe8c0b406ea43e509de087445e0bf134b29b15
|
|
BLAKE2b-256 checksum How to use checksums |
58115ca14b72277692375b53dfa4e3c9e552628344ee31ecf1c1d1145bb5bc89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.1.1 CPython/3.12.7
|
Security for texifast 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.