Downloads · 30 days
11
1% of all-time downloads
waleko/TikZ-llava-1.5-7b
TikZ-llava-1.5-7b is a image-to-text model from waleko. Use it when you need a caption or text from an image. It is set up for transformers.
Fine-tuned multimodal LLaVA model for TikZ diagram generation using hand-drawn sketches.
Downloads · 30 days
11
1% of all-time downloads
All-time downloads
827
Public
Parameters
7.1B
42.4 GB on disk
Likes
7
Public
Click a slice to open those files.
.safetensors14.1 GB · 100%
From the Hugging Face model README
Fine-tuned multimodal LLaVA model for TikZ diagram generation using hand-drawn sketches.
from transformers import pipeline
from PIL import Image
import requests
pipe = pipeline("image-to-text", model="waleko/TikZ-llava-1.5-7b")
url = "https://waleko.github.io/data/image.jpg"
image = Image.open(requests.get(url, stream=True).raw)
prompt = "Assistant helps to write down the TikZ code for the user's image. USER: <image>\nWrite down the TikZ code to draw the diagram shown in the image. ASSISTANT: "
print(pipe(image, prompt=prompt)[0]['generated_text'])
Trained on synthetic TikZ-short-code dataset.
<!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->