Downloads · 30 days
22
8% of all-time downloads
Solo448/GOT-2-hindi_CPU
GOT-2-hindi_CPU is a image-text-to-text model from Solo448. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This is a fine-tuned version of GOT-OCR 2.0 specifically trained for Hindi text extraction from images.
Downloads · 30 days
22
8% of all-time downloads
All-time downloads
283
Public
Parameters
561M
1.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors1.1 GB · 100%
From the Hugging Face model README
This is a fine-tuned version of GOT-OCR 2.0 specifically trained for Hindi text extraction from images.
from transformers import AutoModel, AutoTokenizer
import torch
model_name = "Solo448/GOT-2.0-hindi_CPU"
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModel.from_pretrained(
model_name,
trust_remote_code=True,
low_cpu_mem_usage=True,
torch_dtype=torch.float32
).eval()
result = model.chat(tokenizer, "path/to/hindi_image.png", ocr_type="ocr")
print(result)