caption
stringlengths 7
402
| image_id
int64 0
31k
|
|---|---|
A woman balancing tennis ball on a tennis racket.
| 29,148
|
Two men in coats are talking under an umbrella.
| 19,404
|
Two young men at a crosswalk.
| 23,312
|
People are walking along a dirt road.
| 19,820
|
A black dog pulling a green rope
| 15,294
|
A man on a horse chasing an animal.
| 24,524
|
A group of three dogs competing in a competition.
| 13,682
|
Woman texting while biking.
| 21,120
|
A man buys roses from a young woman in a white dress.
| 6,475
|
A man in a bright orange vest smiles as a group of men work behind him.
| 6,502
|
A brown dog jumping over a hurdle.
| 13,990
|
A woman playing bass guitar on stage with her band.
| 9,235
|
A person lies half under a car, face-down.
| 3,289
|
The dog is swimming.
| 6,083
|
A man wearing red overalls is standing in front of fish for sale.
| 30,648
|
A woman in a black jacket is making a rug.
| 18,828
|
The man wearing blue jeans is fishing.
| 19,922
|
A violinist playing for money on a sidewalk.
| 22,187
|
A man wearing brown shorts and a tan shirt stands in the grass holding 2 nerf jousting toys watching his son crawl in the grass toward another nerf joust toy.
| 26,916
|
A band is playing in a concert.
| 30,143
|
A man sets off a large sparkler while the crown watches on.
| 11,222
|
A grown man wears an outfit made of a Spider-Man bedspread.
| 13,507
|
A lady wearing a fancy costume and headdress while drinking from a can.
| 4,622
|
Several women wearing white shoes and sandals walk through a street festival.
| 8,177
|
There man on top of an snow covered mountain with a lake behind him.
| 7,586
|
Two girls stand outside of a shop.
| 30,510
|
A skateboarder does a trick on the coping of a bowl.
| 15,070
|
A man is beginning to stand up on his surfboard in front of a small wave
| 28,214
|
Four men seated, each one with a laptop in their lap.
| 26,638
|
A barefoot woman in a white skirt and purple shirt is buying something from a cart vendor.
| 14,112
|
A group of three woman and a man are walking, jogging, and bicycling across a pavement near trees.
| 27,349
|
Men in a khaki-colored tent outside in a rundown area.
| 10,424
|
People cooking food over a fire.
| 691
|
A bike rider wearing a red shirt and black shorts is attended to by city workers.
| 1,009
|
Two firemen are standing by a firetruck.
| 24,989
|
A boy in a park playing with two orange balls.
| 15,693
|
Two guys outside, looks like in a parking lot, one guy is picking up a bike.
| 18,024
|
A woman wearing a yellow shirt and shorts hit the tennis ball.
| 4,657
|
Three people are dancing in front of a man playing a guitar.
| 12,595
|
A woman wearing brown boots and holding a red cup walks through a large outdoor crowd.
| 16,205
|
A woman at a desk working on a laptop with a binder in her lap.
| 11,161
|
Man playing guitar hero while another man watches.
| 16,645
|
A young attractive lady taking a stroll down the city street.
| 22,697
|
Asian man in blue Asian robe dancing in front of Asian musicians in blue.
| 22,707
|
Shirtless overweight man leaning over sill of door, with a cat sitting on the steps in front of him.
| 4,366
|
A little boy in a blue shirt starting to cry.
| 18,600
|
Two girls practicing marital arts with all of their safety equipment on.
| 7,126
|
Two men work on a house while hanging over a brick wall, while a coworker works on the roof.
| 22,487
|
A bird stands in the grass, eating something it has found.
| 10,146
|
The two children make a funny pose in front of some bushes.
| 1,051
|
A construction worker sitting in a bulldozer digging up dirt on a work site.
| 2,805
|
A little girl at an aquarium sitting in front of a dolphin tank drinking something.
| 8,049
|
A sumo wrestler rides the train while listening to headphones.
| 23,725
|
A lone old man sitting on a white chair in front of a gate.
| 14,958
|
A woman on a trike and a team of dogs.
| 2,397
|
A very young child is scribbling with crayons.
| 18,063
|
A man standing in a white lab coat with his arm raised.
| 9,972
|
Three women in jackets are crossing the street.
| 17,813
|
Prince Fielder of the Milwaukee Brewers takes a ball that was high and inside.
| 27,432
|
Blond child with white long-sleeve shirt with static hair
| 3,992
|
A little boy holds a spoon up to his mouth.
| 653
|
A baby gives a woman an opportunity to engage in its world.
| 16,561
|
A girl is smiling and a young man is drawing on a white balloon.
| 12,652
|
Beautiful mountain scenery and a ski lift.
| 12,198
|
A boy is dribbling a basketball during a basketball game.
| 28,014
|
A man stands on a mountaintop looking over dry forests and lakes.
| 10,676
|
People clapping in the corner as they watch a band on stage.
| 982
|
A boy sporting a red uniform crouches over a base while a boy on the opposing team dives for the guarded plate, skidding along the dirt.
| 26,805
|
A man wearing a black water-proof garment is making his way through crops that have recently been watered, pulling a box.
| 30,460
|
A woman smiles as she holds an infant.
| 29,026
|
A large, black dog is climbing over a wooden fence surrounded by bushes.
| 2,471
|
Beach goers watch as a cruise ship floats by in the blue ocean.
| 13,676
|
A girl is upside-down on someone's shoulders.
| 30,558
|
An elderly man goes for a run on a busy street.
| 14,518
|
A woman working behind a restaurant counter.
| 16,886
|
Four young women sitting in red chairs listen to a man in a white tuxedo who is next to a microphone, while a woman stands in the background.
| 30,169
|
A group of young students are hanging out together in a university.
| 19,505
|
An excited man in a black vest poses at a concert.
| 11,691
|
An excited child jumps from a bench in fall.
| 17,143
|
A chef in a white uniform mixes popcorn with a large wooden utensil.
| 17,803
|
People gather around a window to look outside at a large crowd.
| 28,118
|
A teenage boy wearing white and green uniform playing soccer.
| 27,630
|
A coke truck and a little girl.
| 24,913
|
Group of people on deck of beach house
| 24,832
|
A photographer looking through the lens.
| 7,963
|
A person wearing a red shirt sitting in the middle of fresh fruit and vegetables.
| 7,388
|
Families waiting in line at an amusement park for their turn to ride.
| 2,293
|
A male surfer catching a nice wave.
| 16,928
|
Women wearing winter coats crossing the street next to parked cars and walking down street
| 18,292
|
A woman in a blue dress is standing with her hand on her hip.
| 28,580
|
Two people wearing hats are standing in a field tending to a crop.
| 25,316
|
A group of people gather to examine pictures on the wall in a lounge setting.
| 19,075
|
A boy in camouflage pants and his ball lying in front of a blue car.
| 1,890
|
Older man working in a factory not looking too excited about the photograph.
| 38
|
Three dogs are playing in the white snow.
| 11,304
|
Several people are in a building and one is holding a drink bottle.
| 16,328
|
The brown and white dog swims in a swimming pool.
| 7,124
|
Several people pack onto the open bed of a turquoise truck which is laden with bags and packages.
| 13,594
|
Two African women preparing a meal.
| 13,699
|
A child is splashing in a children's pool while other children are playing in the background
| 6,523
|
End of preview. Expand
in Data Studio
YAML Metadata
Warning:
empty or missing yaml metadata in repo card
(https://huggingface.co/docs/hub/datasets-cards)
Flickr30k CLIP-Preprocessed Dataset
This dataset contains the Flickr30k dataset preprocessed with CLIP ViT-Large-Patch14 image processor.
Files
img_data.parquet: Preprocessed images as flattened numpy arrays (shape: [3, 224, 224] -> flattened)train_captions.parquet: Training split captions with image_id mappingval_captions.parquet: Validation split captions with image_id mapping
Usage
import pandas as pd
import torch
import numpy as np
# Load the data
images_df = pd.read_parquet('img_data.parquet')
train_captions_df = pd.read_parquet('train_captions.parquet')
val_captions_df = pd.read_parquet('val_captions.parquet')
# Access an image
image_id = 0
flat_image = images_df.iloc[image_id]['image']
image_tensor = torch.from_numpy(flat_image.reshape(3, 224, 224))
# Access captions for that image
captions_for_image = train_captions_df[train_captions_df['image_id'] == image_id]['caption'].tolist()
Original Dataset
Original dataset: nlphuji/flickr30k
Preprocessing
Images were processed using the CLIP ViT-Large-Patch14 image processor:
- Resized to 224x224
- CLIP normalization applied
- Converted to tensors and flattened for storage efficiency
Dataset Statistics
- Total images: Check
img_data.parquetlength - Train captions: Check
train_captions.parquetlength - Validation captions: Check
val_captions.parquetlength - Train/Validation split: 90/10
- Downloads last month
- 14