HubCloneHubClone
Tasks

Image-Text-to-Text

Image-text-to-text models, also called vision language models, take an image and a prompt and answer in text.

Inputs

Input
A cat asleep on a stack of books — What is the cat doing?

Image-Text-to-Text Model

Output

Output

The cat is curled up asleep on top of a pile of hardcover books.

About Image-Text-to-Text

Image-text-to-text models, also called vision language models, take an image and a prompt and answer in text. Browse image-text-to-text models on HubClone to compare checkpoints, or open a Space to try one in the browser.

Use Cases

Visual chat

Hold a conversation about the content of a photo.

Screen understanding

Explain what a user interface screenshot shows.

Inference

The Transformers pipeline API runs image-text-to-text models in a few lines. Replace <model-id> with any model listed on this page.

from transformers import pipeline

pipe = pipeline("image-text-to-text", model="<model-id>")
pipe("fox.png")

Useful Resources

Want to dig deeper into the topic? Great! Here is a hand-picked list of resources we found helpful.

Documentation

  • Image-Text-to-Text task guide
  • Pipelines reference

Notebooks

  • Fine-tuning a image-text-to-text model