Flickr30k (2014)
31,000 Flickr photos of people and everyday scenes, each with five written captions.
Why it matters
With COCO Captions, the benchmark that turned "describe this picture" into a deep-learning problem: CNN-plus-RNN captioners (Show and Tell, Karpathy's alignment model) were scored on it. Its retrieval task, find the caption for this image and vice versa, outlived captioning: CLIP and later vision-language models still report zero-shot Flickr30k retrieval.
Get the data
# pip install -U huggingface_hub
hf download nlphuji/flickr30k --repo-type dataset \
--local-dir flickr30kfrom datasets import load_dataset # pip install datasets
ds = load_dataset("nlphuji/flickr30k", "TEST")
print(ds)import polars as pl
df = pl.read_parquet("hf://datasets/nlphuji/flickr30k@~parquet/TEST/test/*.parquet")
print(df.shape)- Year
- 2014
- Creators
- Peter Young, Alice Lai, Micah Hodosh, Julia Hockenmaier (UIUC)
- Task
- Image captioning and image–text retrieval
- Size
- 31,783 images, 158,915 captions (Karpathy's split uses 31,014)
- Splits
- train 29,000 · validation 1,014 · test 1,000
- Input
- A photo
- Labels
- Five independent one-sentence descriptions
- License
- Captions for research use; images under their Flickr terms
- Paper
- From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions
Samples

- A wakeboarder performs a flip while being towed at high speed.
- An upside down man doing a flip on a waterski board
- A person did a side flip while water boarding.
- A man hangs upside in the air over the water.
- A person upside down on a water board.

- A man wearing a green shirt and an orange safety hat works on mechanical equipment inside a fenced area, while a group of people walk on a lawn behind him.
- A man wearing safety gear operates a machine with tents on the background.
- Man demonstrating an industrial saw at a fair.
- A man works outdoors with some machinery
- A man is milling wood at a festival.

- Shoppers purchase produce from a busy grocery store in Asia.
- A large crowd of people are checking out at a public store.
- Busy checkout in a oriental grocery store.
- A crowd of people are at a supermarket.
- Asian people in a SuperMarket.

- A young girl wearing a pink dress jumps through the air over playground equipment.
- A girl in a pink dress in midair over a large yellow object.
- A young girl jumping through the air on a playground.
- A girl in a pink shirt has jumped into the air.
- A girl is jumping.

- Two people are standing on sidewalk in front of a large building.
- A man crouches down and a little girl stops on the sidewalk.
- A man is kneeling on the sidewalk to talk to a little girl.
- A man crouches on the sidewalk next to a little girl.
- A man bends down to speak to a little girl.

- A group of four girls are in the back of a vehicle looking at a book with a pink cover.
- Four young girls reading a book in the back of a car with boxes of produce.
- A group of kids sitting in the back of a van together looking at a book.
- Several young girls are sitting in a minivan.
- A group of young girls peer at a book.

- Two mimes dressed in black mime tug-of-war in a field while a small white dog runs between them.
- Two mimes are playing tug-of-war while a dog is running between them.
- Two people and a small white dog are playing at the park.
- Mimes trying to pull one another.
- Mimes are playing tug-of-war.

- Two children and a dog play in the snow with a woods behind them.
- Two children and a black dog are playing out in the snow.
- Two children and a dog running around in snow.
- Two children and their dog play in the snow.
- Two kids and a dog play in the snow.

- A white dog lifts its paw as it stands on the grass near striped poles.
- The small furry white dog is walking in the green grass.
- A white dog competing in an agility event.
- A dog trots through the grass.
- A fluffy white dog is outside.

- A man with clown makeup on is holding a guitar and a harmonica while standing in front of a microphone.
- A man with the face paint of a clown holds a ukulele and harmonica.
- A man in suit with face paint is playing a guitar on stage.
- A mime performing on stage holds a ukulele (mandolin?).
- A man with face paint playing a small guitar.

- A boy contorts his face while holding an electronic device.
- A young man is concentrating on playing with a notebook.
- A young boy makes a face as he plays on a game system.
- A young child playing video games on a Nintendo DS.
- Young boy playing a handheld video gaming system.

- The dog is running through the water carrying a black and yellow object in its mouth.
- A dog with a water pack is walking through clear green water.
- The Irish Setter is retrieving a flashlight from the pond.
- A brown dog carrying a black object.
- A dog retrieving in the water.
What one record actually looks like (raw JSON, row 1306)
{
"caption": [
"A wakeboarder performs a flip while being towed at high speed.",
"An upside down man doing a flip on a waterski board",
"A person did a side flip while water boarding.",
"A man hangs upside in the air over the water.",
"A person upside down on a water board."
],
"filename": "1396064003.jpg",
"image": {
"height": 500,
"src": "samples/flickr30k/1306-image.jpg",
"width": 376
},
"img_id": "1306",
"sentids": [
"6530",
"6531",
"6532",
"6533",
"6534"
],
"split": "test"
}Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.
Sampled 2026-11-07 from nlphuji/flickr30k at revision 2b239be
Worth knowing
- Most papers use the "Karpathy split" of 29k / 1k / 1k images, not an official one.
- SNLI's premises are Flickr30k captions; crowdworkers wrote hypotheses about them.
- Annotators often guessed age, gender or ethnicity, as in the captions below, which a 2016 study ("Stereotyping and Bias in the Flickr30K Dataset") documented.
- Flickr30k Entities (2015) later linked phrases in the captions to boxes in the images.
Related datasets
- Flickr8k: 2013, the 8k-image predecessorhockenmaier.cs.illinois.edu ↗
- MS COCO Captions: 2015, 5 captions on 120k+ COCO imagesHugging Face ↗MS COCO on this site →
- SNLI: 2015, inference pairs built on these captionsHugging Face ↗SNLI on this site →
- Visual Genome: 2016, objects, attributes and relationships on 108k imagesHugging Face ↗Visual Genome on this site →
Landmark papers
- Show and Tell: A Neural Image Caption Generator (2014)
- Deep Visual-Semantic Alignments for Generating Image Descriptions (2015)
- Learning Transferable Visual Models From Natural Language Supervision (CLIP) (2021)CLIP on this site →
- Flamingo: a Visual Language Model for Few-Shot Learning (Flamingo) (2022)Flamingo on this site →
- BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models (BLIP-2) (2023)BLIP-2 on this site →