Advanced level · Module 6: Image Captioning and Visual Understanding · Lesson 2 of 3
Using and Evaluating Vision-Language Models
Learners run a pretrained image-to-text model on local images, evaluate the captions with human review and document hallucinations and cultural or local blind spots.
In this lesson you will
- Run a pretrained image-to-text model
- Evaluate captions with a structured human review
Key concepts
image-to-text pipelinevision-language modelshallucinationhuman evaluation rubriclocal blind spots
The lesson
Pretrained image-to-text and vision-language models are available through Hugging Face Transformers (for example the 'image-to-text' pipeline). Check each model's licence and size; smaller models run on a CPU for single images.
Automatic caption metrics exist, but for practical use a human rubric is more informative: is the caption correct, complete, specific and free of invented details? Score 20 local images and record errors.
Models trained mostly on images from elsewhere may misname local foods, crops, clothing or places, or describe people stereotypically. Never use captions for decisions about people, and present outputs as drafts for a person to check.
Step by step
- Run an image-to-text model on 20 local images without identifiable people.
- Score each caption with a four-part rubric.
- List hallucinations and local blind spots.
- Write usage guidance.
Practice activity
Evaluate a pretrained captioning model on local images and write usage guidance.
Expected result: A scored evaluation, a list of failure types and clear guidance.
Check your understanding
-
What is a hallucination in image captioning?
Show answer
A detail in the caption that is not in the image.
-
Why should captions not be used for decisions about people?
Show answer
They can be wrong or stereotyped, and such decisions affect people's rights.
Further learning
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.