Downloads · 30 days
22
13% of all-time downloads
kingabzpro/t5gemma2-latex-ocr-1k
t5gemma2-latex-ocr-1k is a image-text-to-text model from kingabzpro. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as gemma.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
22
13% of all-time downloads
All-time downloads
167
Public
Parameters
786M
1.6 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors1.6 GB · 98%
From the Hugging Face model README
This model is a fine-tuned version of google/t5gemma-2-270m-270m on an unknown dataset.
from transformers import pipeline
generator = pipeline(
"image-text-to-text",
model="kingabzpro/t5gemma2-latex-ocr-1k",
)
generator(
val_ds[10]["image"],
text="<start_of_image> Convert this image to LaTeX. Output only LaTeX.",
generate_kwargs={"do_sample": False, "max_new_tokens": 100},
)
Output:
[{'input_text': '<start_of_image> Convert this image to LaTeX. Output only LaTeX.',
'generated_text': '<start_of_image> Convert this image to LaTeX. Output only LaTeX.f ( p , p ^ { \\prime } ) = \\ln \\left\\{ \\begin{array} { \\begin{array} { \\begin{array} { \\begin{array} { \\begin{array} { \\end{array} \\right\\} \\begin{array} { \\begin{array} { \\begin{array} { \\end{array} \\right\\} \\begin{array} { \\begin{array} { \\begin{array} {'}]
The following hyperparameters were used during training: