Downloads · 30 days
599
33% of all-time downloads
cstr/pix2tex-mfr-gguf
pix2tex-mfr-gguf is a image-to-text model from cstr. Use it when you need a caption or text from an image. The card lists the license as mit.
GGUF-format models for on-device math OCR, converted from breezedeus/pix2text-mfr (MIT license).
Downloads · 30 days
599
33% of all-time downloads
All-time downloads
1.8K
Public
Repo size
450 MB
Likes
0
Public
Click a slice to open those files.
.gguf225 MB · 100%
From the Hugging Face model README
GGUF-format models for on-device math OCR, converted from breezedeus/pix2text-mfr (MIT license).
Recognizes printed mathematical expressions in images and outputs LaTeX.
| File | Format | Size | Quality | Use case |
|---|---|---|---|---|
pix2tex-mfr-f32.gguf | FP32 | 112 MB | Reference | Development/debugging |
pix2tex-mfr-f16.gguf | FP16 | 56 MB | ~F32 | Desktop, full quality |
pix2tex-mfr-q8_0.gguf | Q8_0 | 31 MB | ≥99.5% | Desktop, balanced |
pix2tex-mfr-q4_k.gguf | Q4_K | 17 MB | ≥98% | Mobile, smallest |
#include "math_ocr.h"
math_ocr_context *ctx = math_ocr_init("pix2tex-mfr-q8_0.gguf", 4);
int len;
const char *latex = math_ocr_recognize(ctx, grayscale_pixels, width, height, &len);
printf("LaTeX: %s\n", latex); // e.g. "\frac{x^{2}+1}{x-1}"
math_ocr_free(ctx);
CrispCalc (Flutter CAS calculator) integrates this model via its OCR feature:
Converted from ONNX using:
python models/convert-pix2tex-to-gguf.py \
--model-dir /path/to/pix2text-mfr \
--output pix2tex-mfr-f16.gguf --fp16
Quantized using:
crispembed-quantize pix2tex-mfr-f16.gguf pix2tex-mfr-q8_0.gguf q8_0
crispembed-quantize pix2tex-mfr-f16.gguf pix2tex-mfr-q4_k.gguf q4_k
Verified against the ONNX reference model:
| Project | Role |
|---|---|
| CrispCalc | Flutter CAS calculator with OCR |
| CrispEmbed | ggml inference engine (text + vision + math OCR) |
| CrispASR | Speech recognition engine |
breezedeus.mit. This repository redistributes under the same terms; it grants no rights the upstream licence does not.