Datasets:

Formats:
csv
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:
Dataset Viewer (First 5GB)
Auto-converted to Parquet Duplicate
id
int64
352k
20.9M
url
stringlengths
61
307
caption
stringlengths
27
2.32k
caption_long
float64
origin_width
int64
256
17k
origin_height
int64
256
16.2k
processed_width
int64
256
7.68k
processed_height
int64
256
7.68k
aspect_ratio
float64
0.5
2
exif
stringlengths
2
860k
meta
stringclasses
5 values
created_at
stringlengths
19
26
updated_at
stringlengths
21
26
source
stringclasses
8 values
vector
stringlengths
14.3k
14.7k
origin_source
stringclasses
450 values
license
stringclasses
2 values
10,261,124
https://pd12m.s3.us-west…b60ef287f10.jpeg
The image shows a group of people sitting around a table playing musical instruments, with a photo frame surrounding them. On the table there are various objects, and at the bottom of the image there is some text.
null
6,365
5,228
6,365
5,228
1.217483
{"Artist": "Bosse, Abraham", "ExifOffset": 54}
{}
2025-01-15 22:05:00.036963
2025-03-27 07:35:31.794381
["pd12m"]
[-0.0033683777,0.017623901,0.046844482,0.015777588,0.02696228,-0.008277893,0.015129089,-0.056488037,0.00031208992,-0.028839111,0.007987976,0.00522995,0.03994751,0.017990112,-0.0056495667,-0.019622803,0.005016327,-0.0309906,0.010345459,-0.008430481,-0.046722412,-0.38720703,-0.008926392,-0.0009460449,0.0045318604,-0.0274...
Wikimedia Commons
https://creativecommons.org/publicdomain/zero/1.0/
10,261,125
https://pd12m.s3.us-west…d333ba00725.jpeg
The image shows a group of young girls standing next to each other in front of a brick wall, all wearing dresses. The image is in black and white, giving it a timeless quality.
null
3,000
2,149
3,000
2,149
1.395998
{}
{}
2025-01-15 22:05:00.044032
2025-03-27 07:35:31.859058
["pd12m"]
[-0.0032367706,0.036895752,-0.011909485,0.006416321,0.026260376,0.012313843,-0.007701874,-0.0524292,0.0019836426,-0.010025024,-0.019836426,-0.030395508,0.0473938,0.011627197,0.0013065338,0.044128418,0.008415222,-0.023330688,0.022338867,-0.0124435425,-0.0027275085,-0.41088867,-0.004512787,-0.00033664703,0.007896423,-0.0...
Wikimedia Commons
https://creativecommons.org/publicdomain/mark/1.0/
10,261,126
https://pd12m.s3.us-west…4251562cba8.jpeg
The image shows a black and white photo of a man in a suit, believed to be Thomas Jefferson, the first President of the United States. He is wearing a black suit with a white shirt and a black tie, and has a serious expression on his face. His hair is slicked back and his eyes are focused intently on something in the d...
null
1,140
1,400
1,140
1,400
0.814286
{"DateTime": "2007:01:13 16:18:40", "Software": "Adobe Photoshop CS Macintosh", "ExifOffset": 164, "Orientation": 1, "XResolution": 72.0, "YResolution": 72.0, "ResolutionUnit": 2}
{}
2025-01-15 22:05:00.052637
2025-03-27 07:35:31.925111
["pd12m"]
[0.024459839,0.00045084953,0.0074386597,0.017105103,0.0020389557,-0.004333496,-0.015266418,-0.047332764,-0.007698059,-0.015296936,0.0017814636,-0.01687622,0.015487671,-0.020950317,-0.015335083,-0.004634857,-0.0050468445,0.020706177,-0.021728516,-0.019348145,-0.023544312,-0.44702148,0.0065612793,-0.022781372,-0.01336669...
Wikimedia Commons
https://creativecommons.org/publicdomain/mark/1.0/
10,261,127
https://pd12m.s3.us-west…491134c9d05.jpeg
The image shows a display case filled with lots of different types of jewelry, including a brooch. The brooch is intricately designed with a variety of shapes and colors, and is likely made of metal or gold. The display case is filled to the brim with the brooch, showcasing its intricate details and craftsmanship.
null
785
1,253
785
1,253
0.626496
{}
{}
2025-01-15 22:05:00.058222
2025-03-27 07:35:31.986796
["pd12m"]
[0.036071777,-0.005836487,0.014038086,0.048706055,-0.02861023,-0.019439697,-0.032043457,-0.052642822,-0.014968872,-0.014038086,-0.009529114,-0.023910522,0.019866943,-0.00044083595,-0.008720398,-0.020645142,-0.0052337646,-0.017547607,-0.023284912,0.011672974,-0.006175995,-0.42407227,-0.005607605,0.0025253296,0.004150390...
Wikimedia Commons
https://creativecommons.org/publicdomain/zero/1.0/
10,261,128
https://pd12m.s3.us-west…79512b2a259.jpeg
The image shows a black and white photo of a man wearing a blazer, tie, and spectacles, sitting in a chair.
null
4,407
6,085
4,407
6,085
0.72424
{}
{}
2025-01-15 22:05:00.066221
2025-03-27 07:35:32.060321
["pd12m"]
[0.0059127808,0.0057754517,0.025100708,0.0038757324,0.009529114,-0.0014209747,-0.05456543,-0.06161499,-0.034698486,0.0024662018,-0.0055236816,-0.016586304,0.015617371,-0.011932373,-0.0021839142,-0.008560181,-0.0012865067,-0.018112183,0.022262573,0.0049476624,0.012229919,-0.40820312,0.0051345825,-0.0061149597,0.01150512...
Wikimedia Commons
https://creativecommons.org/publicdomain/mark/1.0/
10,261,129
https://pd12m.s3.us-west…7ac850d7120.jpeg
The image shows a black and white drawing of a man with a mustache wearing a coat. At the bottom of the image there is some text.
null
2,214
2,779
2,214
2,779
0.796689
{}
{}
2025-01-15 22:05:00.092925
2025-03-27 07:35:32.125249
["pd12m"]
[0.017044067,-0.006832123,0.015686035,0.004360199,0.007587433,-0.01524353,-0.00056552887,-0.045928955,-0.018676758,-0.012229919,0.008682251,-0.0009613037,0.027557373,-0.009979248,-0.014785767,-0.04663086,-0.015289307,0.0335083,-0.0027122498,-0.0069274902,-0.028503418,-0.42089844,-0.0022640228,-0.04321289,0.020965576,0....
Wikimedia Commons
https://creativecommons.org/publicdomain/mark/1.0/
10,261,130
https://pd12m.s3.us-west…f9b251368b5.jpeg
The image shows an open book with a drawing of a bird perched on a tree branch. The bird is surrounded by text, giving the image a sense of depth.
null
2,184
3,692
2,184
3,692
0.591549
{}
{}
2025-01-15 22:05:00.107842
2025-03-27 07:35:32.1877
["pd12m"]
[-0.0040283203,0.013496399,0.008605957,0.018859863,0.0002629757,-0.008491516,0.022598267,-0.055755615,-0.041625977,-0.014427185,-0.03152466,4.8160553e-05,-0.010261536,-0.01373291,-0.017044067,-0.013572693,-0.02507019,0.0050468445,0.013793945,-0.02986145,-0.07354736,-0.35351562,-0.021057129,-0.0033283234,-0.031951904,-0...
Wikimedia Commons
https://creativecommons.org/publicdomain/mark/1.0/
10,261,131
https://pd12m.s3.us-west…6f183b41968.jpeg
The image shows a black and white photo of a man riding on top of a float in a parade. The float is decorated with flowers and an animal, and there is a person sitting on the vehicle. In the background, there are people, trees, and a light pole, and the sky is visible at the top of the image.
null
2,885
2,578
2,885
2,578
1.119085
{}
{}
2025-01-15 22:05:00.110444
2025-03-27 07:35:32.256665
["pd12m"]
[-0.008644104,0.0040893555,0.015899658,0.021987915,-0.017913818,0.038513184,0.02268982,-0.06329346,-0.0070381165,-0.0129852295,-0.05102539,0.017105103,-0.0016183853,-0.006046295,-0.00349617,-0.015136719,0.002986908,-0.07330322,-0.013626099,-0.01687622,0.04901123,-0.31420898,-0.016815186,-0.023468018,0.017364502,-0.0054...
Wikimedia Commons
https://creativecommons.org/publicdomain/zero/1.0/
10,261,132
https://pd12m.s3.us-west…364af347f93.jpeg
The image shows a black and white photo of a group of people standing in front of an airplane on the runway. The people are wearing caps and there is a railing in the foreground. In the background, there are trees and a sky with clouds.
null
2,601
2,587
2,601
2,587
1.005412
{}
{}
2025-01-15 22:05:00.11758
2025-03-27 07:35:32.319316
["pd12m"]
[0.010574341,0.025482178,0.0116119385,0.02168274,0.01423645,-0.02810669,0.029418945,-0.0463562,-0.040374756,-0.0067634583,-0.004627228,0.0069770813,0.037200928,-0.015014648,-0.018920898,0.026443481,0.0112838745,-0.023269653,-0.017456055,0.004776001,0.05178833,-0.38842773,0.0152282715,0.01675415,0.008857727,-0.00932312,...
Wikimedia Commons
https://creativecommons.org/publicdomain/zero/1.0/
10,261,133
https://pd12m.s3.us-west…f5297ee3ea4.jpeg
The image shows a stone monument in the middle of a cemetery, surrounded by a wall with creepers growing on it. In the background, there is a building and a tree, and the sky is visible at the top of the image.
null
3,264
4,928
3,264
4,928
0.662338
{"Make": "NIKON CORPORATION", "Model": "NIKON D5100", "GPSInfo": 41494, "DateTime": "2015:06:16 17:08:47", "Software": "Microsoft Windows Photo Viewer 6.1.7600.16385", "ExifOffset": 2330, "Orientation": 1, "XResolution": 300.0, "YResolution": 300.0, "ResolutionUnit": 2, "YCbCrPositioning": 2}
{}
2025-01-15 22:05:00.127759
2025-03-27 07:35:32.381546
["pd12m"]
[-0.01977539,0.01939392,-0.010345459,0.019226074,0.006832123,0.0067214966,0.03793335,-0.04852295,-0.023803711,-0.025543213,-0.015258789,-0.026931763,0.057006836,0.012138367,-0.03894043,-0.0034294128,0.007083893,-0.013694763,0.02909851,-0.01586914,0.051849365,-0.41870117,0.015289307,-0.0060920715,-0.008796692,0.01861572...
Wikimedia Commons
https://creativecommons.org/publicdomain/zero/1.0/
10,261,134
https://pd12m.s3.us-west…f31fe916c15.jpeg
The image shows a painting of a large building with a bridge over a river, surrounded by trees, plants, grass, and boats on the water. People can be seen in the boats, and the sky is filled with clouds. At the bottom of the image, there is text.
null
1,920
1,600
1,920
1,600
1.2
{}
{}
2025-01-15 22:05:00.133367
2025-03-27 07:35:32.443242
["pd12m"]
[-0.019378662,0.011199951,0.0357666,0.00995636,0.02368164,-0.020904541,0.050598145,-0.05999756,-0.012573242,-0.059631348,-0.020431519,-0.0076789856,0.06048584,-0.022216797,-0.017547607,0.012496948,0.02067566,-0.05581665,0.005531311,-0.035186768,-0.02293396,-0.29418945,0.028503418,-0.014762878,-0.053985596,-0.0048217773...
Wikimedia Commons
https://creativecommons.org/publicdomain/zero/1.0/
10,261,149
https://pd12m.s3.us-west…13c6b5bd7eb.jpeg
The image shows an old stone building with a clock tower in the middle of it, surrounded by grass and trees on the left side, with a clear blue sky in the background.
null
2,048
1,536
2,048
1,536
1.333333
{}
{}
2025-01-15 22:05:00.265689
2025-03-30 06:31:56.831383
["pd12m"]
[0.0020561218,0.009819031,0.008148193,0.002298355,0.020553589,-0.008926392,0.04736328,-0.05014038,0.008743286,-0.00390625,0.020690918,-0.032409668,0.034942627,0.030776978,0.0021133423,-0.010139465,0.008331299,-0.0073127747,-0.005443573,-0.0105896,0.058135986,-0.43652344,-0.007865906,0.0056915283,-0.00063323975,0.001484...
Wikimedia Commons
https://creativecommons.org/publicdomain/zero/1.0/
End of preview. Expand in Data Studio

PD12M

This is a curated PD12M dataset for use with the II-Commons project.

Dataset Details

Dataset Description

This dataset comprises a curated Public Domain 12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP 2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with vectorchord.

Dataset Sources

This dataset is derived and organized from Spawning/PD12M. The original license information for the image can be found in the corresponding entry of the original database.

Dataset Structure

  • id: A unique identifier for the image.
  • url: The URL of the image.
  • caption: A caption for the image.
  • caption_long: A long caption for the image.
  • origin_width: The width of the original image in pixels.
  • origin_height: The height of the original image in pixels.
  • processed_width: The width of the processed image in pixels.
  • processed_height: The height of the processed image in pixels.
  • aspect_ratio: The aspect ratio of the image.
  • exif: The EXIF data of the image.
  • meta: The metadata of the image.
  • created_at: The creation time of the image.
  • updated_at: The update time of the image.
  • source: The source organization of the image.
  • vector: The vector embedding of the image.
  • origin_source: The origin source of the image.
  • license: The license of the image.

Prerequisite

PostgreSQL 17 with extensions: vectorchord and pg_search

The easiest way is to use our Docker image, or build your own. Then load the psql_basebackup branch, following the Quick Start

Ensure extensions are enabled, connect to the database using the psql, and run the following SQL:

CREATE EXTENSION IF NOT EXISTS vchord CASCADE;
CREATE EXTENSION IF NOT EXISTS pg_search CASCADE;

Uses

This dataset is available for a wide range of applications.

Here is a demo of how to use the dataset with II-Commons.

Create a Table in PostgreSQL

CREATE TABLE IF NOT EXISTS is_pd12m (
    id BIGSERIAL PRIMARY KEY,
    url VARCHAR NOT NULL,
    caption VARCHAR NOT NULL DEFAULT '',
    caption_long VARCHAR DEFAULT '',
    origin_width BIGINT NOT NULL DEFAULT 0,
    origin_height BIGINT NOT NULL DEFAULT 0,
    processed_width BIGINT NOT NULL DEFAULT 0,
    processed_height BIGINT NOT NULL DEFAULT 0,
    aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
    exif JSONB NOT NULL DEFAULT '{}',
    meta JSONB NOT NULL DEFAULT '{}',
    created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    source JSONB NOT NULL DEFAULT '[]',
    vector halfvec(1152) DEFAULT NULL,
    origin_source VARCHAR DEFAULT '',
    license VARCHAR DEFAULT ''
);

Load csv files to database

  1. Load the dataset from local file system to a remote PostgreSQL server:
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
...
  1. Load the dataset from the PostgreSQL server's file system:
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
...

Create Indexes

You need to create the following indexes for the best performance.

The vector column is a halfvec(1152) column, which is a 16-bit half-precision vector optimized for L2 indexing with vectorchord. You can get more information about the vector index from the vectorchord documentation.

CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops)  WITH (options = $$
    residual_quantization = true
    [build.internal]
    lists = [20000]
    build_threads = 6
    spherical_centroids = false
$$);
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;

Query with II-Commons

Click this link to learn how to query the dataset with II-Commons.

Downloads last month
2,439

Models trained or fine-tuned on Intelligent-Internet/pd12m

Collection including Intelligent-Internet/pd12m

Paper for Intelligent-Internet/pd12m