Base Model :

  • vikhyatk/moondream2

Dataset :

  • project-sloth/captcha-images

Load model :


from transformers import AutoModelForCausalLM, AutoTokenizer
from PIL import Image

model_id = "ayoubkirouane/moondream2-image-captcha"
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained(model_id , trust_remote_code=True)

image = Image.open('/content/test.png')
enc_image = model.encode_image(image)
print(model.answer_question(enc_image, "What does the text say?", tokenizer))

Downloads last month
71
Safetensors
Model size
1.87B params
Tensor type
FP16
·
Inference Providers NEW
This model is not currently available via any of the supported Inference Providers.
The model cannot be deployed to the HF Inference API: The HF Inference API does not support model that require custom code execution.

Datasets used to train ayoubkirouane/moondream2-image-captcha