HubCloneHubClone
Tasks

Visual Question Answering

Visual question answering answers natural-language questions about an image.

Inputs

Input
A street with two buses — How many buses are there?

Visual Question Answering Model

Output

Output
  • 20.91
  • 30.05
  • 10.02

About Visual Question Answering

Visual question answering answers natural-language questions about an image. Browse visual question answering models on HubClone to compare checkpoints, or open a Space to try one in the browser.

Use Cases

Accessibility

Help people with low vision ask about their surroundings.

Filter photo collections with simple questions.

Inference

The Transformers pipeline API runs visual question answering models in a few lines. Replace <model-id> with any model listed on this page.

from transformers import pipeline

pipe = pipeline("visual-question-answering", 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

  • Visual Question Answering task guide
  • Pipelines reference

Notebooks

  • Fine-tuning a visual question answering model