Dataset Viewer
Auto-converted to Parquet Duplicate
seq_id
stringlengths
14
39
supercategory
stringclasses
19 values
category
stringlengths
3
22
category_id
stringlengths
8
33
split_tiou
stringclasses
2 values
split_by_class
stringclasses
2 values
num_search_frames
int32
86
724
num_annotated_masks
int32
11
457
first_annotated_frame
int32
1
330
last_annotated_frame
int32
47
628
query_image
imagewidth (px)
360
480
query_mask
imagewidth (px)
360
480
query_overlay
imagewidth (px)
360
480
example_frame_index
int32
18
355
example_overlay
imagewidth (px)
360
480
aircraft-airship-set_5
aircraft
airship
aircraft-airship
test
train
362
304
1
362
211
aircraft-glider-set_7
aircraft
glider
aircraft-glider
train
test
361
361
1
361
181
aircraft-helicopter-set_10
aircraft
helicopter
aircraft-helicopter
train
train
362
362
1
362
182
aircraft-hot_air_balloon-set_14
aircraft
hot_air_balloon
aircraft-hot_air_balloon
train
train
362
88
1
101
45
aircraft-plane-set_4
aircraft
plane
aircraft-plane
train
train
332
80
1
80
41
aircraft-rocket-set_3
aircraft
rocket
aircraft-rocket
test
train
362
190
101
351
218
aircraft-sailplane-set_3
aircraft
sailplane
aircraft-sailplane
train
test
361
54
308
361
335
aquatic_animal-beluga_whale-set_10
aquatic_animal
beluga_whale
aquatic_animal-beluga_whale
test
test
152
152
1
152
77
aquatic_animal-catfish-set_10
aquatic_animal
catfish
aquatic_animal-catfish
train
test
362
51
272
362
297
aquatic_animal-clownfish-set_7
aquatic_animal
clownfish
aquatic_animal-clownfish
train
train
362
349
1
362
188
aquatic_animal-crab-set_2
aquatic_animal
crab
aquatic_animal-crab
train
train
374
198
22
374
206
aquatic_animal-cuttlefish-set_7
aquatic_animal
cuttlefish
aquatic_animal-cuttlefish
train
train
362
258
5
290
162
aquatic_animal-dolphin-set_3
aquatic_animal
dolphin
aquatic_animal-dolphin
train
train
362
353
1
362
186
aquatic_animal-dolphin_fish-set_1
aquatic_animal
dolphin_fish
aquatic_animal-dolphin_fish
train
train
362
48
50
98
74
aquatic_animal-eel-set_4
aquatic_animal
eel
aquatic_animal-eel
train
train
362
355
8
362
185
aquatic_animal-flatfish-set_2
aquatic_animal
flatfish
aquatic_animal-flatfish
train
train
362
239
51
362
213
aquatic_animal-goldfish-set_8
aquatic_animal
goldfish
aquatic_animal-goldfish
train
train
360
161
184
360
279
aquatic_animal-jellyfish-set_1
aquatic_animal
jellyfish
aquatic_animal-jellyfish
train
train
362
88
36
172
80
aquatic_animal-killer_whale-set_2
aquatic_animal
killer_whale
aquatic_animal-killer_whale
train
train
362
88
27
114
71
aquatic_animal-manatee-set_6
aquatic_animal
manatee
aquatic_animal-manatee
train
train
242
206
37
242
140
aquatic_animal-narwhal-set_1
aquatic_animal
narwhal
aquatic_animal-narwhal
train
train
122
68
34
122
89
aquatic_animal-pearly_nautilus-set_2
aquatic_animal
pearly_nautilus
aquatic_animal-pearly_nautilus
test
train
362
33
330
362
346
aquatic_animal-pufferfish-set_5
aquatic_animal
pufferfish
aquatic_animal-pufferfish
train
test
362
69
294
362
328
aquatic_animal-salmon-set_6
aquatic_animal
salmon
aquatic_animal-salmon
train
test
362
87
274
362
317
aquatic_animal-sea_lion-set_8
aquatic_animal
sea_lion
aquatic_animal-sea_lion
train
train
362
332
1
362
194
aquatic_animal-sea_slug-set_2
aquatic_animal
sea_slug
aquatic_animal-sea_slug
train
train
290
174
2
273
90
aquatic_animal-seahorse-set_4
aquatic_animal
seahorse
aquatic_animal-seahorse
train
test
362
180
157
350
261
aquatic_animal-seal-set_9
aquatic_animal
seal
aquatic_animal-seal
train
train
362
317
1
362
191
aquatic_animal-shark-set_5
aquatic_animal
shark
aquatic_animal-shark
test
test
362
304
9
362
186
aquatic_animal-shellfish-set_9
aquatic_animal
shellfish
aquatic_animal-shellfish
train
train
362
59
303
362
332
aquatic_animal-shrimp-set_4
aquatic_animal
shrimp
aquatic_animal-shrimp
train
train
164
50
77
126
102
aquatic_animal-starfish-set_4
aquatic_animal
starfish
aquatic_animal-starfish
train
train
362
45
311
355
333
aquatic_animal-stingray-set_4
aquatic_animal
stingray
aquatic_animal-stingray
train
train
362
217
144
362
254
aquatic_animal-tilapia-set_2
aquatic_animal
tilapia
aquatic_animal-tilapia
train
train
362
83
107
362
148
aquatic_animal-trout-set_9
aquatic_animal
trout
aquatic_animal-trout
train
train
362
62
8
362
332
aquatic_animal-tuna-set_1
aquatic_animal
tuna
aquatic_animal-tuna
train
test
362
69
1
218
37
aquatic_animal-urchin-set_1
aquatic_animal
urchin
aquatic_animal-urchin
train
train
362
33
312
362
328
aquatic_animal-whale-set_2
aquatic_animal
whale
aquatic_animal-whale
train
train
362
338
1
362
170
bird-chicken-set_4
bird
chicken
bird-chicken
train
train
362
362
1
362
182
bird-crane-set_3
bird
crane
bird-crane
train
test
362
324
1
362
201
bird-crow-set_12
bird
crow
bird-crow
train
test
362
362
1
362
182
bird-duck-set_14
bird
duck
bird-duck
train
train
362
362
1
362
182
bird-eagle-set_3
bird
eagle
bird-eagle
train
train
362
362
1
362
182
bird-goose-set_1
bird
goose
bird-goose
train
train
362
356
1
362
180
bird-grackle-set_1
bird
grackle
bird-grackle
train
train
362
362
1
362
182
bird-ostrich-set_7
bird
ostrich
bird-ostrich
train
train
362
85
1
101
43
bird-owl-set_4
bird
owl
bird-owl
train
train
362
328
1
362
165
bird-parrot-set_4
bird
parrot
bird-parrot
train
train
362
174
189
362
276
bird-penguin-set_8
bird
penguin
bird-penguin
train
train
362
308
1
342
162
bird-pigeon-set_12
bird
pigeon
bird-pigeon
train
train
362
362
1
362
182
bird-seagull-set_4
bird
seagull
bird-seagull
train
test
362
362
1
362
182
bird-swan-set_1
bird
swan
bird-swan
test
train
362
330
33
362
198
bird-vulture-set_1
bird
vulture
bird-vulture
train
train
362
362
1
362
182
clothing_accessory-eyeglasses-set_17
clothing_accessory
eyeglasses
clothing_accessory-eyeglasses
train
train
357
328
1
357
194
clothing_accessory-eyeshade-set_24
clothing_accessory
eyeshade
clothing_accessory-eyeshade
train
train
359
141
219
359
289
clothing_accessory-mask-set_10
clothing_accessory
mask
clothing_accessory-mask
train
test
357
224
62
357
225
clothing_accessory-necklace-set_6
clothing_accessory
necklace
clothing_accessory-necklace
train
test
361
117
110
361
169
clothing_accessory-ring-set_9
clothing_accessory
ring
clothing_accessory-ring
train
test
359
49
311
359
335
clothing_accessory-scarf-set_29
clothing_accessory
scarf
clothing_accessory-scarf
train
train
360
58
303
360
332
clothing_accessory-shoes-set_47
clothing_accessory
shoes
clothing_accessory-shoes
train
test
361
88
166
253
210
clothing_accessory-watch-set_15
clothing_accessory
watch
clothing_accessory-watch
train
train
367
248
1
367
125
daily_item-backpack-set_9
daily_item
backpack
daily_item-backpack
train
train
365
126
6
192
69
daily_item-book-set_28
daily_item
book
daily_item-book
train
train
360
150
1
150
76
daily_item-folder-set_10
daily_item
folder
daily_item-folder
test
train
362
73
42
141
104
daily_item-keychain-set_9
daily_item
keychain
daily_item-keychain
train
train
359
208
35
253
139
daily_item-lighter-set_34
daily_item
lighter
daily_item-lighter
train
train
361
288
1
289
145
daily_item-pen-set_5
daily_item
pen
daily_item-pen
train
train
357
181
177
357
267
daily_item-raincoat-set_18
daily_item
raincoat
daily_item-raincoat
train
train
361
136
226
361
294
daily_item-remote_control-set_1
daily_item
remote_control
daily_item-remote_control
train
train
359
112
35
146
91
daily_item-scissors-set_11
daily_item
scissors
daily_item-scissors
train
train
646
457
1
628
229
daily_item-suitcase-set_12
daily_item
suitcase
daily_item-suitcase
train
train
362
53
135
187
161
daily_item-umbrella-set_5
daily_item
umbrella
daily_item-umbrella
train
train
359
86
273
359
316
daily_item-wallet-set_29
daily_item
wallet
daily_item-wallet
train
train
361
331
1
361
196
electronic-desktop_computer-set_15
electronic
desktop_computer
electronic-desktop_computer
train
train
482
119
296
439
355
electronic-display-set_7
electronic
display
electronic-display
train
test
152
70
1
152
36
electronic-earbuds-set_13
electronic
earbuds
electronic-earbuds
test
train
122
56
1
69
42
electronic-gamepad-set_4
electronic
gamepad
electronic-gamepad
train
train
362
90
1
106
62
electronic-headphone-set_36
electronic
headphone
electronic-headphone
train
train
338
73
54
338
122
electronic-keyboard-set_32
electronic
keyboard
electronic-keyboard
train
train
362
115
1
362
172
electronic-laptop-set_3
electronic
laptop
electronic-laptop
train
train
182
95
1
182
48
electronic-microphone-set_5
electronic
microphone
electronic-microphone
train
train
362
88
47
213
170
electronic-mouse-set_33
electronic
mouse
electronic-mouse
train
train
362
105
121
349
173
electronic-pad-set_5
electronic
pad
electronic-pad
train
test
122
56
1
122
72
electronic-phone-set_25
electronic
phone
electronic-phone
train
test
194
128
1
128
65
electronic-projector-set_17
electronic
projector
electronic-projector
train
train
362
82
26
141
81
electronic-speaker-set_2
electronic
speaker
electronic-speaker
train
train
362
92
25
153
108
electronic-television-set_2
electronic
television
electronic-television
train
train
170
60
1
166
137
food-sushi-set_5
food
sushi
food-sushi
train
test
364
97
67
189
115
human-basketball_player-set_18
human
basketball_player
human-basketball_player
train
train
260
98
83
180
132
human-cyclist-set_7
human
cyclist
human-cyclist
train
train
374
374
1
374
188
human-dancer-set_18
human
dancer
human-dancer
train
train
362
101
218
318
268
human-football_player-set_2
human
football_player
human-football_player
train
train
307
104
142
248
197
human-hockey_player-set_14
human
hockey_player
human-hockey_player
train
train
542
214
16
229
123
human-passengers-set_13
human
passengers
human-passengers
train
train
491
118
3
137
79
human-rider-set_9
human
rider
human-rider
train
train
230
138
1
170
73
human-runner-set_1
human
runner
human-runner
train
train
470
192
111
341
208
human-singer-set_31
human
singer
human-singer
train
train
356
82
258
342
302
human-skater-set_35
human
skater
human-skater
train
train
362
194
1
362
266
human-skier-set_7
human
skier
human-skier
train
train
362
57
174
230
202
human-skydiver-set_3
human
skydiver
human-skydiver
train
train
457
58
5
62
34
End of preview. Expand in Data Studio

VQS-4K

Find an object in a video, given one picture of it from somewhere else β€” and segment it everywhere it appears.

teaser

You get an untrimmed video and a visual query: a single image plus a mask of the target, taken from outside that video. The task is to output a pixel mask for the object in every frame where it appears β€” and nothing where it doesn't.

This differs from the two neighbouring tasks:

  • vs. VQL (visual query localization): VQL returns one bounding box on the target's last appearance. VQS returns pixel masks for all appearances.
  • vs. VOS (video object segmentation): VOS takes its reference mask from the video's own first frame. Here the query is external, so lighting, pose, scale and background can differ sharply from anything in the video.

Dataset for the NeurIPS 2026 Datasets & Benchmarks paper Towards Visual Query Segmentation in the Wild. Code and the VQ-SAM baseline: https://github.com/VAIL-Fan/VQS.

Video–query pairs 4,111
Search-video frames 1,304,473 @ 6 fps
Annotated masks 222,173 + 4,111 query masks
Categories 222 fine / 19 coarse
Size 76 GB

Quick start

Try it without downloading anything β€” 222 samples, one per category, render right in the viewer:

from datasets import load_dataset
ds = load_dataset("bf0820/VQS-4K", "preview", split="train")
ds[0]["query_overlay"]   # query image with the target highlighted

Grab one real sequence (~19 MB):

from huggingface_hub import hf_hub_download
import tarfile

seq = "mammal-mouse-set_8"
for kind in ("images", "masks"):
    p = hf_hub_download("bf0820/VQS-4K", f"{kind}/{seq}.tar", repo_type="dataset")
    tarfile.open(p).extractall(f"VQS-4K/{kind}")
# -> VQS-4K/images/mammal-mouse-set_8/00000.jpg ...

Grab a whole split with the helper script:

python scripts/download.py --split test --protocol tiou --out VQS-4K --unpack

How the data is laid out

Frames are packed one tar per sequence, so you can take a single video instead of all 76 GB:

images/<seq_id>.tar    4,111 archives -> <seq_id>/00000.jpg, 00001.jpg, ...
masks/<seq_id>.tar     4,111 archives -> <seq_id>/00000.png, ...
splits/                official split files, one sequence id per line
metadata.csv           per-sequence index (category, splits, frame counts, annotated range)
dataset_stats.json     totals + the full 222-category list
scripts/               download helper and a ready-made PyTorch Dataset
preview/               the 222-sample preview config

Every tar extracts into its own <seq_id>/ folder, so unpacking them all into one place rebuilds the original tree.

Three things to know about the frames

  1. Frame 00000 is the query, not part of the video. images/<id>/00000.jpg + masks/<id>/00000.png define the target. The search video starts at 00001.
  2. Masks are sparse on purpose. A mask file exists only for frames where the object is present. No mask file means the object is absent, and the correct prediction there is an empty mask β€” this is the whole point of the untrimmed setting, so don't treat missing masks as unlabeled.
  3. Masks are binary PNGs (non-zero = target); frames are JPEG.

Sequence IDs

Format is <supercategory>-<category>-set_<n>, e.g. mammal-mouse-set_8. Names are plain snake_case ASCII β€” no spaces, so paths are safe to use unquoted.

Careful: category alone is not unique β€” mouse exists under both electronic and mammal. Use category_id (<supercategory>-<category>) from metadata.csv as the key. That is what gives 222.

Splits

Two protocols, each covering all 4,111 sequences. They answer different questions β€” report which one you used.

1. Standard split β€” use this one by default

splits/train_t-IoU.txt (3,289) / splits/test_t-IoU.txt (822) Β· column split_tiou

This is the split the paper evaluates on, and the one to use for comparable numbers. Classes overlap between train and test, so it measures ordinary in-distribution performance.

Coverage is near-total but not exact: test covers 217 of 222 classes and train 221 of 222. The five classes with no test sequence are aquatic_animal-urchin, human-rider, human-skydiver, human-swimmer, mammal-pig; sport_equipment-ice_hockey has no train sequence. Most of these are classes with very few sequences overall (urchin, swimmer and ice_hockey have exactly one).

2. Unseen-class split β€” for zero-shot / generalization

splits/train_t-IoU_by_class.txt (3,301) / splits/test_t-IoU_by_class.txt (810) Β· column split_by_class

Split along class boundaries: 180 classes in train, 42 in test, with zero overlap. No test category is ever seen during training, so this measures generalization to novel object categories rather than in-distribution accuracy. Numbers from this split are not comparable with the standard split β€” they are a harder, different task.

The 42 held-out classes span 14 supercategories (aircraft, aquatic_animal, bird, clothing_accessory, electronic, food, insect, kitchenware, mammal, personal_care, reptile, sport_equipment, vehicle, watercraft).

Categories

categories

Supercategory Seqs Supercategory Seqs
human 461 vehicle 143
daily_item 344 tool 135
electronic 342 retail_item 104
kitchenware 337 reptile 100
sport_equipment 332 toy 80
clothing_accessory 324 aircraft 68
personal_care 298 watercraft 58
mammal 275 food 40
aquatic_animal 240
insect 218
bird 212

Supercategory folder prefixes are the snake_case form of the paper's class names, so the figure above and the directory layout agree (clothing_accessory = "clothing & accessory", daily_item = "daily item", retail_item = "retail item", sport_equipment = "sport equipment").

Note on sequence IDs

IDs here are cleaned up relative to the paper's supplementary and the original Kaggle release: supercategory prefixes now follow the paper's class names, three class spellings are corrected (natwhal β†’ narwhal, saiulplane β†’ sailplane, sparyer β†’ sprayer), and the one class containing a space is fixed (electric_impac_ wrench β†’ electric_impact_wrench).

The frames, masks, splits and all statistics are unchanged β€” only names differ. Every row of metadata.csv carries a legacy_seq_id column with the original ID, so results reported against the earlier naming can be mapped across exactly:

import pandas as pd
m = pd.read_csv("metadata.csv")
old2new = dict(zip(m.legacy_seq_id, m.seq_id))

More samples

samples

Annotation

pipeline

Five steps: category and search design β†’ collection from YouTube by keyword β†’ manual screening to keep only videos with a valid clip + external-query pair β†’ expert labeling of every temporal segment containing the target plus pixel masks within them β†’ multiple rounds of inspection and refinement. Over 8K candidate videos were filtered down to 4,111.

Evaluation

Scored on mask accuracy together with a temporal IoU (t-IoU) term, so a method has to get both where and when the target appears. Because masks are sparse, frames with no ground-truth mask count: predicting a mask on an absent object is penalized. Exact protocol and the evaluation code are at https://github.com/VAIL-Fan/VQS.

License and intended use

Source videos were collected under Creative Commons licenses and are distributed for research purposes only. This release is CC BY-NC 4.0.

Source licenses can change. Rights holders can open an issue on GitHub or a discussion here and the maintainers will act.

The videos are in-the-wild YouTube footage and some contain people (the human supercategory includes cyclists, skaters, workers, passengers). Annotations mark object instances only β€” no identity, demographic or other personal attributes are labeled. Do not use this data for person identification, surveillance or biometric applications.

Citation

@inproceedings{fan2026vqs,
  title     = {Towards Visual Query Segmentation in the Wild},
  author    = {Fan, Bing and Li, Minghao and Zhang, Hanzhi and Dong, Shaohua and
               Mareedu, Naga Prudhvi and Liu, Xiaoqiong and Shi, Weishi and
               Feng, Yunhe and Huang, Yan and Fan, Heng},
  booktitle = {Advances in Neural Information Processing Systems (NeurIPS),
               Datasets and Benchmarks Track},
  year      = {2026}
}

Maintained by the authors, Department of Computer Science and Engineering, University of North Texas. Questions: the Community tab here, or github.com/VAIL-Fan/VQS.

Downloads last month
156

Models trained or fine-tuned on bf0820/VQS-4K