Dataset Viewer
Auto-converted to Parquet Duplicate
id
int64
0
75.7k
image
imagewidth (px)
193
512
label
int32
0
100
label_name
stringclasses
101 values
image_emb
list
0
6
beignets
[ -0.02191162109375, 0.031707763671875, -0.0121917724609375, 0.02325439453125, -0.007404327392578125, 0.00356292724609375, 0.006374359130859375, -0.0229339599609375, -0.006908416748046875, -0.0655517578125, -0.0220947265625, -0.0034618377685546875, -0.00047469139099121094, 0.0071792602539062...
1
6
beignets
[ -0.023468017578125, 0.0865478515625, -0.0311126708984375, 0.07171630859375, -0.0037136077880859375, -0.0300140380859375, -0.00289154052734375, -0.03759765625, 0.01206207275390625, -0.058441162109375, -0.00746917724609375, -0.0106964111328125, 0.006862640380859375, -0.034698486328125, 0.0...
2
6
beignets
[ -0.00835418701171875, 0.061920166015625, -0.0200958251953125, 0.07470703125, 0.0020885467529296875, -0.0162200927734375, 0.057220458984375, -0.03790283203125, 0.01255035400390625, -0.0750732421875, 0.0280609130859375, -0.05889892578125, 0.016204833984375, -0.00547027587890625, 0.01163482...
3
6
beignets
[ -0.03472900390625, 0.07568359375, -0.035736083984375, 0.059539794921875, 0.0003764629364013672, 0.00109100341796875, -0.01983642578125, 0.028350830078125, -0.039642333984375, 0.01200103759765625, -0.004917144775390625, -0.0226287841796875, 0.0157012939453125, 0.0037403106689453125, 0.018...
4
6
beignets
[ -0.0263824462890625, 0.06341552734375, -0.065185546875, 0.09564208984375, -0.0149383544921875, -0.01192474365234375, 0.0279388427734375, -0.045440673828125, 0.015655517578125, -0.0255126953125, 0.01041412353515625, -0.021453857421875, 0.0190887451171875, -0.0263214111328125, 0.0229644775...
5
6
beignets
[ -0.0208587646484375, 0.099853515625, -0.07989501953125, 0.020263671875, 0.01300811767578125, -0.0347900390625, 0.0182342529296875, 0.00861358642578125, 0.0115966796875, -0.01291656494140625, -0.0204010009765625, -0.01227569580078125, 0.044158935546875, 0.011199951171875, 0.02409362792968...
6
6
beignets
[ -0.048492431640625, 0.0799560546875, 0.07208251953125, 0.1282958984375, -0.0202484130859375, 0.02325439453125, -0.004550933837890625, -0.01369476318359375, -0.00363922119140625, -0.0989990234375, -0.061126708984375, 0.0199127197265625, 0.0240936279296875, 0.04742431640625, 0.032165527343...
7
6
beignets
[ -0.037445068359375, -0.038726806640625, -0.10260009765625, 0.07196044921875, -0.0129547119140625, -0.051971435546875, 0.0183258056640625, -0.0302276611328125, 0.0277252197265625, -0.07000732421875, 0.00249481201171875, -0.03839111328125, 0.0250396728515625, -0.05804443359375, 0.056335449...
8
6
beignets
[ -0.04351806640625, 0.083740234375, -0.06304931640625, 0.0931396484375, -0.02764892578125, -0.040313720703125, -0.018768310546875, -0.02716064453125, 0.026153564453125, 0.0252227783203125, -0.0091705322265625, -0.01922607421875, 0.032318115234375, -0.049041748046875, 0.07818603515625, -...
9
6
beignets
[ -0.038421630859375, 0.06671142578125, -0.0239410400390625, 0.10614013671875, -0.0151214599609375, -0.05859375, 0.02130126953125, -0.02691650390625, -0.00669097900390625, 0.006000518798828125, -0.043426513671875, -0.02789306640625, 0.02960205078125, -0.038909912109375, -0.0032978057861328...
10
6
beignets
[ -0.01470184326171875, 0.08673095703125, -0.04791259765625, 0.0718994140625, -0.01091766357421875, -0.048004150390625, -0.0241546630859375, -0.01039886474609375, -0.005222320556640625, -0.0531005859375, 0.00209808349609375, 0.013641357421875, 0.00470733642578125, -0.036376953125, 0.071594...
11
6
beignets
[ -0.025177001953125, 0.0989990234375, -0.0120391845703125, 0.08685302734375, -0.006031036376953125, -0.040313720703125, 0.017059326171875, -0.04541015625, 0.0150299072265625, -0.0242462158203125, 0.007160186767578125, -0.0266265869140625, 0.01096343994140625, -0.0163726806640625, 0.049987...
12
6
beignets
[ -0.018798828125, -0.166748046875, -0.07342529296875, 0.04083251953125, -0.06219482421875, -0.004489898681640625, -0.0174407958984375, -0.0239410400390625, -0.01212310791015625, 0.037841796875, -0.051788330078125, -0.00870513916015625, 0.01374053955078125, 0.01531219482421875, -0.03292846...
13
6
beignets
[ -0.0162200927734375, 0.101318359375, -0.00725555419921875, 0.11224365234375, -0.0574951171875, -0.047210693359375, 0.0167388916015625, -0.004184722900390625, -0.0178375244140625, -0.00710296630859375, -0.0159149169921875, -0.0157928466796875, 0.036712646484375, 0.0025196075439453125, 0.0...
14
6
beignets
[ -0.03045654296875, 0.10968017578125, -0.062744140625, 0.06640625, 0.0174102783203125, -0.000038504600524902344, 0.04510498046875, -0.02667236328125, 0.0165252685546875, -0.0003826618194580078, 0.00836944580078125, -0.0062255859375, 0.005035400390625, -0.041717529296875, 0.043487548828125...
15
6
beignets
[ -0.0152587890625, 0.09967041015625, 0.00429534912109375, 0.1163330078125, -0.04010009765625, -0.03607177734375, 0.00681304931640625, -0.0141754150390625, -0.0015687942504882812, -0.031890869140625, -0.0100250244140625, 0.01268768310546875, 0.0061798095703125, -0.0296783447265625, 0.07385...
16
6
beignets
[ -0.0302276611328125, 0.08734130859375, 0.003055572509765625, -0.0024318695068359375, 0.01399993896484375, -0.008056640625, -0.0037670135498046875, -0.045806884765625, -0.0015316009521484375, -0.02374267578125, 0.004863739013671875, -0.043609619140625, -0.005321502685546875, -0.021926879882...
17
6
beignets
[ -0.04718017578125, 0.056976318359375, -0.021728515625, 0.0301513671875, -0.005306243896484375, -0.009033203125, 0.0211029052734375, -0.01555633544921875, 0.0216522216796875, -0.0183258056640625, -0.020751953125, -0.00772857666015625, -0.0034313201904296875, 0.0168609619140625, 0.01632690...
18
6
beignets
[ -0.0738525390625, 0.05657958984375, -0.06683349609375, 0.006488800048828125, 0.0188446044921875, -0.05657958984375, 0.0300750732421875, -0.044952392578125, 0.0089263916015625, -0.0164337158203125, -0.0162353515625, -0.01485443115234375, 0.0201873779296875, 0.0030536651611328125, 0.014175...
19
6
beignets
[ -0.0192413330078125, 0.071533203125, 0.042755126953125, 0.0880126953125, -0.01259613037109375, -0.033721923828125, -0.00455474853515625, -0.0296630859375, -0.0012941360473632812, 0.0234527587890625, -0.020782470703125, -0.0194244384765625, 0.007450103759765625, 0.0114898681640625, 0.0613...
End of preview. Expand in Data Studio

Food-101 (Lance Format)

Lance-formatted version of Food-101 — 101,000 food photographs across 101 classes — sourced from ethz/food101. Inline JPEG bytes + CLIP image embeddings + IVF_PQ.

Splits

Split Rows
train.lance 75,750
validation.lance 25,250

Schema

Column Type Notes
id int64 Row index within split
image large_binary Inline JPEG bytes
label int32 Class id (0-100)
label_name string One of 101 dish names (apple_pie, baby_back_ribs, …)
image_emb fixed_size_list<float32, 512> OpenCLIP ViT-B-32 embedding (cosine-normalized)

Pre-built indices

  • IVF_PQ on image_embmetric=cosine
  • BTREE on label
  • BITMAP on label_name

Quick start

import lance
ds = lance.dataset("hf://datasets/lance-format/food101-lance/data/validation.lance")
print(ds.count_rows(), ds.schema.names, ds.list_indices())

Load with LanceDB

These tables can also be consumed by LanceDB, the multimodal lakehouse and embedded search library built on top of Lance, for simplified vector search and other queries.

import lancedb

db = lancedb.connect("hf://datasets/lance-format/food101-lance/data")
tbl = db.open_table("validation")
print(f"LanceDB table opened with {len(tbl)} images")

Filter by class

import lance
ds = lance.dataset("hf://datasets/lance-format/food101-lance/data/validation.lance")
sushi = ds.scanner(filter="label_name = 'sushi'", columns=["id"], limit=5).to_table()

Filter by class with LanceDB

import lancedb

db = lancedb.connect("hf://datasets/lance-format/food101-lance/data")
tbl = db.open_table("validation")
sushi = tbl.search().where("label_name = 'sushi'").select(["id"]).limit(5).to_list()

Visual similarity search

import lance, pyarrow as pa
ds = lance.dataset("hf://datasets/lance-format/food101-lance/data/validation.lance")
emb_field = ds.schema.field("image_emb")
ref = ds.take([0], columns=["image_emb", "label_name"]).to_pylist()[0]
query = pa.array([ref["image_emb"]], type=emb_field.type)
neighbors = ds.scanner(
    nearest={"column": "image_emb", "q": query[0], "k": 5, "nprobes": 16, "refine_factor": 30},
    columns=["id", "label_name"],
).to_table().to_pylist()

LanceDB visual similarity search

import lancedb

db = lancedb.connect("hf://datasets/lance-format/food101-lance/data")
tbl = db.open_table("validation")

ref = tbl.search().limit(1).select(["image_emb", "label_name"]).to_list()[0]
query_embedding = ref["image_emb"]

results = (
    tbl.search(query_embedding)
    .metric("cosine")
    .select(["id", "label_name"])
    .limit(5)
    .to_list()
)

Source & license

Converted from ethz/food101. The Food-101 dataset is by Bossard et al. (ETH Zurich) — see the original dataset page for licensing details.

Citation

@inproceedings{bossard2014food,
  title={Food-101 -- Mining Discriminative Components with Random Forests},
  author={Bossard, Lukas and Guillaumin, Matthieu and Van Gool, Luc},
  booktitle={European Conference on Computer Vision (ECCV)},
  year={2014}
}
Downloads last month
103