image_id int64 42 582k | file_name stringlengths 16 16 | caption stringlengths 27 249 | coco_url stringlengths 56 56 | width int64 120 640 | height int64 111 640 | split stringclasses 1
value | vector list | image_bytes imagewidth (px) 120 640 |
|---|---|---|---|---|---|---|---|---|
391,895 | 000000391895.jpg | A man with a red helmet on a small moped on a dirt road. | http://images.cocodataset.org/train2017/000000391895.jpg | 640 | 360 | train | [
0.006157763302326202,
-0.008693178184330463,
0.0010625984286889434,
0.008125937543809414,
-0.04848472401499748,
-0.006618706975132227,
0.040625739842653275,
-0.03032991848886013,
0.009960958734154701,
-0.029210366308689117,
0.0035048448480665684,
-0.04142863303422928,
0.06603703647851944,
... | |
522,418 | 000000522418.jpg | A woman wearing a net on her head cutting a cake. | http://images.cocodataset.org/train2017/000000522418.jpg | 640 | 480 | train | [
0.025608085095882416,
0.01021610852330923,
-0.01902405172586441,
0.05330897122621536,
0.006014273501932621,
0.01956217736005783,
0.01872878149151802,
-0.035067420452833176,
-0.014808113686740398,
0.01817440800368786,
0.0002574858081061393,
-0.03152858838438988,
0.03508215770125389,
0.01465... | |
184,613 | 000000184613.jpg | A child holding a flowered umbrella and petting a yak. | http://images.cocodataset.org/train2017/000000184613.jpg | 500 | 336 | train | [
0.0004943794920109212,
0.0010860960464924574,
-0.014100574888288975,
0.01739352196455002,
-0.01359639037400484,
-0.008128015324473381,
0.026468509808182716,
-0.04066934436559677,
0.005580957513302565,
0.019089821726083755,
-0.028795620426535606,
0.006197343580424786,
0.05142704024910927,
-... | |
318,219 | 000000318219.jpg | A young boy standing in front of a computer keyboard. | http://images.cocodataset.org/train2017/000000318219.jpg | 556 | 640 | train | [
-0.02357388474047184,
-0.02201356738805771,
-0.0023579932749271393,
-0.007794079836457968,
-0.010452859103679657,
-0.013281529769301414,
0.019564427435398102,
-0.023948244750499725,
-0.0007240122649818659,
-0.0008091476047411561,
0.011917423456907272,
-0.020345784723758698,
0.106165952980518... | |
554,625 | 000000554625.jpg | a boy wearing headphones using one computer in a long row of computers | http://images.cocodataset.org/train2017/000000554625.jpg | 426 | 640 | train | [
-0.023058615624904633,
-0.018734632059931755,
-0.006305631250143051,
-0.011987492442131042,
-0.014658632688224316,
-0.0053622545674443245,
0.01064639538526535,
-0.02605627290904522,
0.0053797452710568905,
-0.000008210887244786136,
0.010751285590231419,
-0.02295655757188797,
0.105666317045688... | |
574,769 | 000000574769.jpg | A woman in a room with a cat. | http://images.cocodataset.org/train2017/000000574769.jpg | 480 | 640 | train | [
0.028470486402511597,
-0.027623144909739494,
-0.00576449790969491,
0.003509631147608161,
0.04523095861077309,
0.013942469842731953,
-0.006409927736967802,
-0.031012799590826035,
-0.011098886840045452,
0.0011487099109217525,
-0.03630068525671959,
-0.00024806451983749866,
0.1024937704205513,
... | |
60,623 | 000000060623.jpg | A young girl inhales with the intent of blowing out a candle. | http://images.cocodataset.org/train2017/000000060623.jpg | 640 | 427 | train | [
0.007770375348627567,
-0.012358865700662136,
-0.04389382153749466,
0.007564519066363573,
0.015097139403223991,
0.004650276154279709,
0.019469957798719406,
-0.029430171474814415,
0.01027362048625946,
0.05204251408576965,
0.011712229810655117,
-0.008846309036016464,
0.05091957375407219,
0.02... | |
309,022 | 000000309022.jpg | A commercial stainless kitchen with a pot of food cooking. | http://images.cocodataset.org/train2017/000000309022.jpg | 640 | 480 | train | [-0.01936623826622963,0.0004910544957965612,-0.02846701629459858,-0.0000847605915623717,0.0113972136(...TRUNCATED) | |
5,802 | 000000005802.jpg | Two men wearing aprons working in a commercial-style kitchen. | http://images.cocodataset.org/train2017/000000005802.jpg | 640 | 479 | train | [0.001051367144100368,0.006881636567413807,-0.015872810035943985,-0.008539183996617794,0.01727748848(...TRUNCATED) | |
222,564 | 000000222564.jpg | Two chefs in a restaurant kitchen preparing food. | http://images.cocodataset.org/train2017/000000222564.jpg | 640 | 480 | train | [-0.0005300345947034657,-0.011408291757106781,-0.0330754816532135,0.0029826276004314423,0.0163277257(...TRUNCATED) |
End of preview. Expand in Data Studio
COCO 2017 SigLIP 2 Image Embeddings
Pre-computed image embeddings for the COCO 2017 dataset, generated with Google's SigLIP 2 (SoViT-400M, 384px).
Overview
| Property | Value |
|---|---|
| Model | google/siglip2-so400m-patch14-384 |
| Vector dimensions | 1152 |
| Normalization | L2-normalized (unit vectors) |
| Source dataset | COCO 2017 |
| Image resolution | 384 x 384 (resized by SigLIP 2 processor) |
Dataset Structure
Schema
Each row contains the embedding, metadata, and the raw image bytes for a single COCO image:
| Column | Type | Description |
|---|---|---|
image_id |
int64 | COCO image ID |
file_name |
string | Original filename (e.g. 000000000009.jpg) |
caption |
string | First COCO caption (empty for test/unlabeled splits) |
coco_url |
string | Original COCO download URL |
width |
int64 | Original image width in pixels |
height |
int64 | Original image height in pixels |
split |
string | Dataset split (train, val, test, or unlabeled) |
vector |
float32[1152] | L2-normalized SigLIP 2 image embedding |
image_bytes |
binary | Raw JPEG image bytes |
LanceDB table
The lancedb/ directory contains the same data in Lance format, ready to load directly with LanceDB:
import lancedb
db = lancedb.connect("lancedb")
table = db.open_table("coco_clip_embeddings")
# Vector search
results = table.search(query_vector).limit(10).to_pandas()
# Images come back inline — no external storage needed
from PIL import Image
import io
img = Image.open(io.BytesIO(results.iloc[0]["image_bytes"]))
Usage
Load into LanceDB for vector search
import lancedb
db = lancedb.connect("lancedb")
table = db.open_table("coco_clip_embeddings")
# Find similar images
query_vec = df.iloc[0]["vector"]
results = table.search(query_vec).limit(5).to_pandas()
Compute similarity between images
import numpy as np
vec_a = np.array(df.iloc[0]["vector"])
vec_b = np.array(df.iloc[1]["vector"])
cosine_sim = np.dot(vec_a, vec_b) # vectors are already L2-normalized
Generation
Embeddings were generated using the opensearch-lancedb-migration project:
# Download COCO images
uv run python -m src.cli download --split val
# Generate embeddings
uv run python -m src.cli embed
# Upload to Hugging Face
uv run python -m src.cli upload username/coco-2017-siglip2-embeddings --upload lancedb
License
The embeddings and code are released under the MIT License. The underlying COCO images are subject to the COCO Terms of Use.
- Downloads last month
- 80