Downloads · 30 days
89
19% of all-time downloads
cstr/trocr-math-handwritten-gguf
trocr-math-handwritten-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 afl-3.0.
Handwritten math equation recognition via CrispEmbed's ggml inference engine.
Downloads · 30 days
89
19% of all-time downloads
All-time downloads
462
Public
Repo size
1.6 GB
Likes
0
Public
Click a slice to open those files.
.gguf1.6 GB · 100%
From the Hugging Face model README
Handwritten math equation recognition via CrispEmbed's ggml inference engine.
Source model: fhswf/TrOCR_Math_handwritten (AFL-3.0)
Architecture: ViT-Large encoder (24L, 1024d, 16H) + TrOCR-Large decoder (12L, 1024d, 16H, vocab=50265)
| File | Size | Description |
|---|---|---|
trocr-math-handwritten-fp16.gguf | 1.2 GB | FP16 weights |
trocr-math-handwritten-q4_k.gguf | 355 MB | Q4_K quantized |
| Input | Recognized |
|---|---|
| x+y=5 (hand-drawn) | X + Y = |
| x²+1 (printed) | x^{2} |
| 3x+7=0 (printed) | 3x+7 |
| + (cross pattern) | + |
math_ocr_context* ctx = math_ocr_init("trocr-math-handwritten-q4_k.gguf", 4);
const char* latex = math_ocr_recognize(ctx, gray_pixels, width, height, &len);
math_ocr_free(ctx);
Converted from HuggingFace safetensors using CrispEmbed's torch-free converter:
python models/convert-trocr-safetensors-to-gguf.py \
--model-dir /path/to/fhswf/TrOCR_Math_handwritten \
--output trocr-math-handwritten-fp16.gguf --fp16
Key converter features:
safetensors + gguf + numpy only)Academic Free License v3.0 (inherited from source model)
fhswf.afl-3.0. This repository redistributes under the same terms; it grants no rights the upstream licence does not.