Datasets:
Delete .history
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .history/README_20250512195144.md +0 -110
- .history/README_20250513101814.md +0 -109
- .history/README_20250513101818.md +0 -109
- .history/README_20250513101823.md +0 -109
- .history/README_20250513101828.md +0 -109
- .history/README_20250513101829.md +0 -109
- .history/README_20250513101830.md +0 -109
- .history/README_20250513101834.md +0 -109
- .history/README_20250513101836.md +0 -109
- .history/README_20250513101846.md +0 -109
- .history/README_20250513101854.md +0 -109
- .history/README_20250513102004.md +0 -109
- .history/README_20250513102007.md +0 -109
- .history/README_20250513102008.md +0 -109
- .history/README_20250513103952.md +0 -109
- .history/README_20250513103953.md +0 -109
- .history/README_20250513103954.md +0 -109
- .history/README_20250513103957.md +0 -109
- .history/README_20250513104028.md +0 -109
- .history/README_20250513104030.md +0 -109
- .history/README_20250513104031.md +0 -109
- .history/README_20250513104042.md +0 -109
- .history/README_20250513104044.md +0 -109
- .history/README_20250513104103.md +0 -109
- .history/README_20250513104104.md +0 -109
- .history/README_20250513104204.md +0 -109
- .history/README_20250513104207.md +0 -109
- .history/README_20250513104211.md +0 -109
- .history/README_20250513104214.md +0 -109
- .history/README_20250513104216.md +0 -109
- .history/README_20250513104217.md +0 -109
- .history/README_20250513104240.md +0 -109
- .history/README_20250513111012.md +0 -108
- .history/README_20250513111014.md +0 -108
- .history/README_20250513111019.md +0 -108
- .history/README_20250513111025.md +0 -109
- .history/README_20250513111029.md +0 -109
- .history/README_20250513111030.md +0 -109
- .history/README_20250513111034.md +0 -109
- .history/README_20250513111035.md +0 -109
- .history/README_20250513111036.md +0 -109
- .history/README_20250513111037.md +0 -109
- .history/README_20250513111043.md +0 -109
- .history/README_20250513111045.md +0 -109
- .history/README_20250513111058.md +0 -107
- .history/README_20250513111111.md +0 -109
- .history/README_20250513111112.md +0 -111
- .history/README_20250513111216.md +0 -158
- .history/README_20250513111230.md +0 -160
- .history/README_20250513112320.md +0 -162
.history/README_20250512195144.md
DELETED
|
@@ -1,110 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS {table_name}_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
f'CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
| 110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513101814.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS {table_name}_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
f'CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513101818.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS {table_name}_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
f'CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513101823.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS {table_name}_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
f'CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513101828.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
f'CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513101829.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
f'CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513101830.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
f"CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
f'CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513101834.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513101836.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513101846.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513101854.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513102004.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{EMPTY_OBJECT}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513102007.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513102008.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using SigLIP2. All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513103952.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M 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](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513103953.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M 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](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513103954.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M 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](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513103957.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104028.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [PD12M image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104030.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [PD12M] image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104031.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [PD12M](https://huggingface.co/datasets/Spawning/PD12M) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104042.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [PD12M](https://huggingface.co/datasets/Spawning/PD12M) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104044.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [PD12M](https://huggingface.co/datasets/Spawning/PD12M) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104103.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [PD12M](https://huggingface.co/datasets/Spawning/PD12M) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104104.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [PD12M](https://huggingface.co/datasets/Spawning/PD12M) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104204.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://huggingface.co/datasets/Spawning/PD12M) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104207.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [PD12M](https://huggingface.co/datasets/Spawning/PD12M) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104211.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated Public Domain 12M[PD12M](https://huggingface.co/datasets/Spawning/PD12M) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104214.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [PD12M](https://huggingface.co/datasets/Spawning/PD12M) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104216.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://huggingface.co/datasets/Spawning/PD12M) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104217.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://huggingface.co/datasets/Spawning/PD12M) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513104240.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111012.md
DELETED
|
@@ -1,108 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 63 |
-
|
| 64 |
-
```sql
|
| 65 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 66 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 68 |
-
...
|
| 69 |
-
```
|
| 70 |
-
|
| 71 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 72 |
-
|
| 73 |
-
```sql
|
| 74 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 75 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 77 |
-
...
|
| 78 |
-
```
|
| 79 |
-
|
| 80 |
-
3. Create Indexes
|
| 81 |
-
|
| 82 |
-
```sql
|
| 83 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 84 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 97 |
-
residual_quantization = true
|
| 98 |
-
[build.internal]
|
| 99 |
-
lists = [20000]
|
| 100 |
-
build_threads = 6
|
| 101 |
-
spherical_centroids = false
|
| 102 |
-
$$);
|
| 103 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 106 |
-
```
|
| 107 |
-
|
| 108 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111014.md
DELETED
|
@@ -1,108 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 63 |
-
|
| 64 |
-
```sql
|
| 65 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 66 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 68 |
-
...
|
| 69 |
-
```
|
| 70 |
-
|
| 71 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 72 |
-
|
| 73 |
-
```sql
|
| 74 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 75 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 77 |
-
...
|
| 78 |
-
```
|
| 79 |
-
|
| 80 |
-
3. Create Indexes
|
| 81 |
-
|
| 82 |
-
```sql
|
| 83 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 84 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 97 |
-
residual_quantization = true
|
| 98 |
-
[build.internal]
|
| 99 |
-
lists = [20000]
|
| 100 |
-
build_threads = 6
|
| 101 |
-
spherical_centroids = false
|
| 102 |
-
$$);
|
| 103 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 106 |
-
```
|
| 107 |
-
|
| 108 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111019.md
DELETED
|
@@ -1,108 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 63 |
-
|
| 64 |
-
```sql
|
| 65 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 66 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 68 |
-
...
|
| 69 |
-
```
|
| 70 |
-
|
| 71 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 72 |
-
|
| 73 |
-
```sql
|
| 74 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 75 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 77 |
-
...
|
| 78 |
-
```
|
| 79 |
-
|
| 80 |
-
3. Create Indexes
|
| 81 |
-
|
| 82 |
-
```sql
|
| 83 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 84 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 97 |
-
residual_quantization = true
|
| 98 |
-
[build.internal]
|
| 99 |
-
lists = [20000]
|
| 100 |
-
build_threads = 6
|
| 101 |
-
spherical_centroids = false
|
| 102 |
-
$$);
|
| 103 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 106 |
-
```
|
| 107 |
-
|
| 108 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111025.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111029.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111030.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111034.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111035.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111036.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111037.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111043.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111045.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
| 108 |
-
|
| 109 |
-
## Dataset Structure
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111058.md
DELETED
|
@@ -1,107 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Uses
|
| 26 |
-
|
| 27 |
-
This dataset is available for a wide range of applications.
|
| 28 |
-
|
| 29 |
-
### Use with Chipmunk
|
| 30 |
-
|
| 31 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 32 |
-
|
| 33 |
-
### Use directly in PostgreSQL
|
| 34 |
-
|
| 35 |
-
1. Create Table
|
| 36 |
-
|
| 37 |
-
```sql
|
| 38 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 39 |
-
id BIGSERIAL PRIMARY KEY,
|
| 40 |
-
url VARCHAR NOT NULL,
|
| 41 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 42 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 43 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 46 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 47 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 48 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 49 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 52 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 53 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 54 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 55 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 56 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 57 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 58 |
-
);
|
| 59 |
-
```
|
| 60 |
-
|
| 61 |
-
2. Load csv file to database
|
| 62 |
-
|
| 63 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 64 |
-
|
| 65 |
-
```sql
|
| 66 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 67 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 68 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 69 |
-
...
|
| 70 |
-
```
|
| 71 |
-
|
| 72 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 73 |
-
|
| 74 |
-
```sql
|
| 75 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 76 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 77 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 78 |
-
...
|
| 79 |
-
```
|
| 80 |
-
|
| 81 |
-
3. Create Indexes
|
| 82 |
-
|
| 83 |
-
```sql
|
| 84 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 85 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 86 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 98 |
-
residual_quantization = true
|
| 99 |
-
[build.internal]
|
| 100 |
-
lists = [20000]
|
| 101 |
-
build_threads = 6
|
| 102 |
-
spherical_centroids = false
|
| 103 |
-
$$);
|
| 104 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 105 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 107 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111111.md
DELETED
|
@@ -1,109 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Dataset Structure
|
| 26 |
-
|
| 27 |
-
## Uses
|
| 28 |
-
|
| 29 |
-
This dataset is available for a wide range of applications.
|
| 30 |
-
|
| 31 |
-
### Use with Chipmunk
|
| 32 |
-
|
| 33 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 34 |
-
|
| 35 |
-
### Use directly in PostgreSQL
|
| 36 |
-
|
| 37 |
-
1. Create Table
|
| 38 |
-
|
| 39 |
-
```sql
|
| 40 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 41 |
-
id BIGSERIAL PRIMARY KEY,
|
| 42 |
-
url VARCHAR NOT NULL,
|
| 43 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 44 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 45 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 46 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 47 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 48 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 49 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 50 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 51 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 52 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 53 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 54 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 55 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 56 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 57 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 58 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 59 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 60 |
-
);
|
| 61 |
-
```
|
| 62 |
-
|
| 63 |
-
2. Load csv file to database
|
| 64 |
-
|
| 65 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 66 |
-
|
| 67 |
-
```sql
|
| 68 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 69 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 70 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 71 |
-
...
|
| 72 |
-
```
|
| 73 |
-
|
| 74 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 75 |
-
|
| 76 |
-
```sql
|
| 77 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 78 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 79 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 80 |
-
...
|
| 81 |
-
```
|
| 82 |
-
|
| 83 |
-
3. Create Indexes
|
| 84 |
-
|
| 85 |
-
```sql
|
| 86 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 87 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 88 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 98 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 99 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 100 |
-
residual_quantization = true
|
| 101 |
-
[build.internal]
|
| 102 |
-
lists = [20000]
|
| 103 |
-
build_threads = 6
|
| 104 |
-
spherical_centroids = false
|
| 105 |
-
$$);
|
| 106 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 107 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 108 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 109 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111112.md
DELETED
|
@@ -1,111 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Dataset Structure
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
## Uses
|
| 30 |
-
|
| 31 |
-
This dataset is available for a wide range of applications.
|
| 32 |
-
|
| 33 |
-
### Use with Chipmunk
|
| 34 |
-
|
| 35 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 36 |
-
|
| 37 |
-
### Use directly in PostgreSQL
|
| 38 |
-
|
| 39 |
-
1. Create Table
|
| 40 |
-
|
| 41 |
-
```sql
|
| 42 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 43 |
-
id BIGSERIAL PRIMARY KEY,
|
| 44 |
-
url VARCHAR NOT NULL,
|
| 45 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 46 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 47 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 48 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 49 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 50 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 51 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 52 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 53 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 54 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 55 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 56 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 57 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 58 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 59 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 60 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 61 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 62 |
-
);
|
| 63 |
-
```
|
| 64 |
-
|
| 65 |
-
2. Load csv file to database
|
| 66 |
-
|
| 67 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 68 |
-
|
| 69 |
-
```sql
|
| 70 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 71 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 72 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 73 |
-
...
|
| 74 |
-
```
|
| 75 |
-
|
| 76 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 77 |
-
|
| 78 |
-
```sql
|
| 79 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 80 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 81 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 82 |
-
...
|
| 83 |
-
```
|
| 84 |
-
|
| 85 |
-
3. Create Indexes
|
| 86 |
-
|
| 87 |
-
```sql
|
| 88 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 89 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 90 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 91 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 92 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 93 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 94 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 95 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 96 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 97 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 98 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 99 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 100 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 101 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 102 |
-
residual_quantization = true
|
| 103 |
-
[build.internal]
|
| 104 |
-
lists = [20000]
|
| 105 |
-
build_threads = 6
|
| 106 |
-
spherical_centroids = false
|
| 107 |
-
$$);
|
| 108 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 109 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 110 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 111 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111216.md
DELETED
|
@@ -1,158 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Dataset Structure
|
| 26 |
-
|
| 27 |
-
```
|
| 28 |
-
\d is_pd12m;
|
| 29 |
-
Table "public.is_pd12m"
|
| 30 |
-
Column | Type | Collation | Nullable | Default
|
| 31 |
-
----------------------+-----------------------------+-----------+----------+---------------
|
| 32 |
-
id | bigint | | not null |
|
| 33 |
-
url | character varying | | not null |
|
| 34 |
-
caption | character varying | | not null |
|
| 35 |
-
caption_long | character varying | | not null |
|
| 36 |
-
origin_width | bigint | | not null |
|
| 37 |
-
origin_height | bigint | | not null |
|
| 38 |
-
origin_storage_id | character varying(1024) | | not null |
|
| 39 |
-
processed_storage_id | character varying(1024) | | not null |
|
| 40 |
-
processed_width | bigint | | not null |
|
| 41 |
-
processed_height | bigint | | not null |
|
| 42 |
-
aspect_ratio | double precision | | not null |
|
| 43 |
-
exif | jsonb | | not null |
|
| 44 |
-
meta | jsonb | | not null |
|
| 45 |
-
created_at | timestamp without time zone | | not null |
|
| 46 |
-
updated_at | timestamp without time zone | | not null |
|
| 47 |
-
source | jsonb | | not null |
|
| 48 |
-
vector | halfvec(1152) | | | NULL::halfvec
|
| 49 |
-
Indexes:
|
| 50 |
-
"id_pd12m_pkey" PRIMARY KEY, btree (id)
|
| 51 |
-
"is_pd12m_aspect_ratio_index" btree (aspect_ratio)
|
| 52 |
-
"is_pd12m_caption_index" btree (caption) WHERE caption::text = ''::text
|
| 53 |
-
"is_pd12m_caption_long_index" btree (caption_long) WHERE caption_long::text = ''::text
|
| 54 |
-
"is_pd12m_created_at_index" btree (created_at)
|
| 55 |
-
"is_pd12m_exif_index" gin (exif)
|
| 56 |
-
"is_pd12m_meta_index" gin (meta)
|
| 57 |
-
"is_pd12m_origin_height_index" btree (origin_height)
|
| 58 |
-
"is_pd12m_origin_storage_id_index" btree (origin_storage_id)
|
| 59 |
-
"is_pd12m_origin_width_index" btree (origin_width)
|
| 60 |
-
"is_pd12m_processed_height_index" btree (processed_height)
|
| 61 |
-
"is_pd12m_processed_storage_id_index" btree (processed_storage_id)
|
| 62 |
-
"is_pd12m_processed_width_index" btree (processed_width)
|
| 63 |
-
"is_pd12m_source_index" gin (source)
|
| 64 |
-
"is_pd12m_updated_at_index" btree (updated_at)
|
| 65 |
-
"is_pd12m_url_index" UNIQUE, btree (url)
|
| 66 |
-
"is_pd12m_vector_index" vchordrq (vector halfvec_l2_ops) WITH (options='
|
| 67 |
-
residual_quantization = true
|
| 68 |
-
[build.internal]
|
| 69 |
-
lists = [20000]
|
| 70 |
-
build_threads = 6
|
| 71 |
-
spherical_centroids = false
|
| 72 |
-
')
|
| 73 |
-
"is_pd12m_vector_null_index" btree (vector) WHERE vector IS NULL
|
| 74 |
-
```
|
| 75 |
-
|
| 76 |
-
## Uses
|
| 77 |
-
|
| 78 |
-
This dataset is available for a wide range of applications.
|
| 79 |
-
|
| 80 |
-
### Use with Chipmunk
|
| 81 |
-
|
| 82 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 83 |
-
|
| 84 |
-
### Use directly in PostgreSQL
|
| 85 |
-
|
| 86 |
-
1. Create Table
|
| 87 |
-
|
| 88 |
-
```sql
|
| 89 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 90 |
-
id BIGSERIAL PRIMARY KEY,
|
| 91 |
-
url VARCHAR NOT NULL,
|
| 92 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 93 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 94 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 95 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 96 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 97 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 98 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 99 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 100 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 101 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 102 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 103 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 104 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 105 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 106 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 107 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 108 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 109 |
-
);
|
| 110 |
-
```
|
| 111 |
-
|
| 112 |
-
2. Load csv file to database
|
| 113 |
-
|
| 114 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 115 |
-
|
| 116 |
-
```sql
|
| 117 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 118 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 119 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 120 |
-
...
|
| 121 |
-
```
|
| 122 |
-
|
| 123 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 124 |
-
|
| 125 |
-
```sql
|
| 126 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 127 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 128 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 129 |
-
...
|
| 130 |
-
```
|
| 131 |
-
|
| 132 |
-
3. Create Indexes
|
| 133 |
-
|
| 134 |
-
```sql
|
| 135 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 136 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 137 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 138 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 139 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 140 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 141 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 142 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 143 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 144 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 145 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 146 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 147 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 148 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 149 |
-
residual_quantization = true
|
| 150 |
-
[build.internal]
|
| 151 |
-
lists = [20000]
|
| 152 |
-
build_threads = 6
|
| 153 |
-
spherical_centroids = false
|
| 154 |
-
$$);
|
| 155 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 156 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 157 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 158 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513111230.md
DELETED
|
@@ -1,160 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Dataset Structure
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
```
|
| 30 |
-
\d is_pd12m;
|
| 31 |
-
Table "public.is_pd12m"
|
| 32 |
-
Column | Type | Collation | Nullable | Default
|
| 33 |
-
----------------------+-----------------------------+-----------+----------+---------------
|
| 34 |
-
id | bigint | | not null |
|
| 35 |
-
url | character varying | | not null |
|
| 36 |
-
caption | character varying | | not null |
|
| 37 |
-
caption_long | character varying | | not null |
|
| 38 |
-
origin_width | bigint | | not null |
|
| 39 |
-
origin_height | bigint | | not null |
|
| 40 |
-
origin_storage_id | character varying(1024) | | not null |
|
| 41 |
-
processed_storage_id | character varying(1024) | | not null |
|
| 42 |
-
processed_width | bigint | | not null |
|
| 43 |
-
processed_height | bigint | | not null |
|
| 44 |
-
aspect_ratio | double precision | | not null |
|
| 45 |
-
exif | jsonb | | not null |
|
| 46 |
-
meta | jsonb | | not null |
|
| 47 |
-
created_at | timestamp without time zone | | not null |
|
| 48 |
-
updated_at | timestamp without time zone | | not null |
|
| 49 |
-
source | jsonb | | not null |
|
| 50 |
-
vector | halfvec(1152) | | | NULL::halfvec
|
| 51 |
-
Indexes:
|
| 52 |
-
"id_pd12m_pkey" PRIMARY KEY, btree (id)
|
| 53 |
-
"is_pd12m_aspect_ratio_index" btree (aspect_ratio)
|
| 54 |
-
"is_pd12m_caption_index" btree (caption) WHERE caption::text = ''::text
|
| 55 |
-
"is_pd12m_caption_long_index" btree (caption_long) WHERE caption_long::text = ''::text
|
| 56 |
-
"is_pd12m_created_at_index" btree (created_at)
|
| 57 |
-
"is_pd12m_exif_index" gin (exif)
|
| 58 |
-
"is_pd12m_meta_index" gin (meta)
|
| 59 |
-
"is_pd12m_origin_height_index" btree (origin_height)
|
| 60 |
-
"is_pd12m_origin_storage_id_index" btree (origin_storage_id)
|
| 61 |
-
"is_pd12m_origin_width_index" btree (origin_width)
|
| 62 |
-
"is_pd12m_processed_height_index" btree (processed_height)
|
| 63 |
-
"is_pd12m_processed_storage_id_index" btree (processed_storage_id)
|
| 64 |
-
"is_pd12m_processed_width_index" btree (processed_width)
|
| 65 |
-
"is_pd12m_source_index" gin (source)
|
| 66 |
-
"is_pd12m_updated_at_index" btree (updated_at)
|
| 67 |
-
"is_pd12m_url_index" UNIQUE, btree (url)
|
| 68 |
-
"is_pd12m_vector_index" vchordrq (vector halfvec_l2_ops) WITH (options='
|
| 69 |
-
residual_quantization = true
|
| 70 |
-
[build.internal]
|
| 71 |
-
lists = [20000]
|
| 72 |
-
build_threads = 6
|
| 73 |
-
spherical_centroids = false
|
| 74 |
-
')
|
| 75 |
-
"is_pd12m_vector_null_index" btree (vector) WHERE vector IS NULL
|
| 76 |
-
```
|
| 77 |
-
|
| 78 |
-
## Uses
|
| 79 |
-
|
| 80 |
-
This dataset is available for a wide range of applications.
|
| 81 |
-
|
| 82 |
-
### Use with Chipmunk
|
| 83 |
-
|
| 84 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 85 |
-
|
| 86 |
-
### Use directly in PostgreSQL
|
| 87 |
-
|
| 88 |
-
1. Create Table
|
| 89 |
-
|
| 90 |
-
```sql
|
| 91 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 92 |
-
id BIGSERIAL PRIMARY KEY,
|
| 93 |
-
url VARCHAR NOT NULL,
|
| 94 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 95 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 96 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 97 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 98 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 99 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 100 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 101 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 102 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 103 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 104 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 105 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 106 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 107 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 108 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 109 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 110 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 111 |
-
);
|
| 112 |
-
```
|
| 113 |
-
|
| 114 |
-
2. Load csv file to database
|
| 115 |
-
|
| 116 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 117 |
-
|
| 118 |
-
```sql
|
| 119 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 120 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 121 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 122 |
-
...
|
| 123 |
-
```
|
| 124 |
-
|
| 125 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 126 |
-
|
| 127 |
-
```sql
|
| 128 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 129 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 130 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 131 |
-
...
|
| 132 |
-
```
|
| 133 |
-
|
| 134 |
-
3. Create Indexes
|
| 135 |
-
|
| 136 |
-
```sql
|
| 137 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 138 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 139 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 140 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 141 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 142 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 143 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 144 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 145 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 146 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 147 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 148 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 149 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 150 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 151 |
-
residual_quantization = true
|
| 152 |
-
[build.internal]
|
| 153 |
-
lists = [20000]
|
| 154 |
-
build_threads = 6
|
| 155 |
-
spherical_centroids = false
|
| 156 |
-
$$);
|
| 157 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 158 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 159 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 160 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.history/README_20250513112320.md
DELETED
|
@@ -1,162 +0,0 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
task_categories:
|
| 4 |
-
- feature-extraction
|
| 5 |
-
language:
|
| 6 |
-
- en
|
| 7 |
-
size_categories:
|
| 8 |
-
- 1M<n<10M
|
| 9 |
-
---
|
| 10 |
-
|
| 11 |
-
# Dataset Card for `PD12M`
|
| 12 |
-
|
| 13 |
-
This is a curated PD12M dataset for use with the [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk) project.
|
| 14 |
-
|
| 15 |
-
## Dataset Details
|
| 16 |
-
|
| 17 |
-
### Dataset Description
|
| 18 |
-
|
| 19 |
-
This dataset comprises a curated [Public Domain 12M](https://source.plus/pd12m) image collection, refined by filtering for active image links. EXIF data was extracted, and images underwent preprocessing and feature extraction using [SigLIP 2](https://huggingface.co/papers/2502.14786). All vector embeddings are normalized 16-bit half-precision vectors optimized for L2 indexing with [vectorchord](https://github.com/tensorchord/vectorchord).
|
| 20 |
-
|
| 21 |
-
### Dataset Sources
|
| 22 |
-
|
| 23 |
-
This dataset is derived and organized from [Spawning/PD12M](http://huggingface.co/datasets/Spawning/PD12M). The original license information for the image can be found in the corresponding entry of the original database.
|
| 24 |
-
|
| 25 |
-
## Dataset Structure
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
```
|
| 30 |
-
\d is_pd12m;
|
| 31 |
-
Table "public.is_pd12m"
|
| 32 |
-
Column | Type | Collation | Nullable | Default
|
| 33 |
-
----------------------+-----------------------------+-----------+----------+---------------
|
| 34 |
-
id | bigint | | not null |
|
| 35 |
-
url | character varying | | not null |
|
| 36 |
-
caption | character varying | | not null |
|
| 37 |
-
caption_long | character varying | | not null |
|
| 38 |
-
origin_width | bigint | | not null |
|
| 39 |
-
origin_height | bigint | | not null |
|
| 40 |
-
origin_storage_id | character varying(1024) | | not null |
|
| 41 |
-
processed_storage_id | character varying(1024) | | not null |
|
| 42 |
-
processed_width | bigint | | not null |
|
| 43 |
-
processed_height | bigint | | not null |
|
| 44 |
-
aspect_ratio | double precision | | not null |
|
| 45 |
-
exif | jsonb | | not null |
|
| 46 |
-
meta | jsonb | | not null |
|
| 47 |
-
created_at | timestamp without time zone | | not null |
|
| 48 |
-
updated_at | timestamp without time zone | | not null |
|
| 49 |
-
source | jsonb | | not null |
|
| 50 |
-
vector | halfvec(1152) | | | NULL::halfvec
|
| 51 |
-
Indexes:
|
| 52 |
-
"id_pd12m_pkey" PRIMARY KEY, btree (id)
|
| 53 |
-
"is_pd12m_aspect_ratio_index" btree (aspect_ratio)
|
| 54 |
-
"is_pd12m_caption_index" btree (caption) WHERE caption::text = ''::text
|
| 55 |
-
"is_pd12m_caption_long_index" btree (caption_long) WHERE caption_long::text = ''::text
|
| 56 |
-
"is_pd12m_created_at_index" btree (created_at)
|
| 57 |
-
"is_pd12m_exif_index" gin (exif)
|
| 58 |
-
"is_pd12m_meta_index" gin (meta)
|
| 59 |
-
"is_pd12m_origin_height_index" btree (origin_height)
|
| 60 |
-
"is_pd12m_origin_storage_id_index" btree (origin_storage_id)
|
| 61 |
-
"is_pd12m_origin_width_index" btree (origin_width)
|
| 62 |
-
"is_pd12m_processed_height_index" btree (processed_height)
|
| 63 |
-
"is_pd12m_processed_storage_id_index" btree (processed_storage_id)
|
| 64 |
-
"is_pd12m_processed_width_index" btree (processed_width)
|
| 65 |
-
"is_pd12m_source_index" gin (source)
|
| 66 |
-
"is_pd12m_updated_at_index" btree (updated_at)
|
| 67 |
-
"is_pd12m_url_index" UNIQUE, btree (url)
|
| 68 |
-
"is_pd12m_vector_index" vchordrq (vector halfvec_l2_ops) WITH (options='
|
| 69 |
-
residual_quantization = true
|
| 70 |
-
[build.internal]
|
| 71 |
-
lists = [20000]
|
| 72 |
-
build_threads = 6
|
| 73 |
-
spherical_centroids = false
|
| 74 |
-
')
|
| 75 |
-
"is_pd12m_vector_null_index" btree (vector) WHERE vector IS NULL
|
| 76 |
-
```
|
| 77 |
-
|
| 78 |
-
## Uses
|
| 79 |
-
|
| 80 |
-
This dataset is available for a wide range of applications.
|
| 81 |
-
|
| 82 |
-
### Use with Chipmunk
|
| 83 |
-
|
| 84 |
-
Click this link to learn how to load the dataset to [Chipmunk](https://github.com/Intelligent-Internet/Chipmunk).
|
| 85 |
-
|
| 86 |
-
### Use directly in PostgreSQL
|
| 87 |
-
|
| 88 |
-
1. Create Table
|
| 89 |
-
|
| 90 |
-
```sql
|
| 91 |
-
CREATE TABLE IF NOT EXISTS is_pd12m (
|
| 92 |
-
id BIGSERIAL PRIMARY KEY,
|
| 93 |
-
url VARCHAR NOT NULL,
|
| 94 |
-
hash VARCHAR NOT NULL DEFAULT '',
|
| 95 |
-
caption VARCHAR NOT NULL DEFAULT '',
|
| 96 |
-
caption_long VARCHAR NOT NULL DEFAULT '',
|
| 97 |
-
origin_hash VARCHAR NOT NULL DEFAULT '',
|
| 98 |
-
origin_width BIGINT NOT NULL DEFAULT 0,
|
| 99 |
-
origin_height BIGINT NOT NULL DEFAULT 0,
|
| 100 |
-
origin_storage_id VARCHAR(1024) DEFAULT NULL,
|
| 101 |
-
processed_storage_id VARCHAR(1024) NOT NULL DEFAULT '',
|
| 102 |
-
processed_width BIGINT NOT NULL DEFAULT 0,
|
| 103 |
-
processed_height BIGINT NOT NULL DEFAULT 0,
|
| 104 |
-
aspect_ratio DOUBLE PRECISION NOT NULL DEFAULT 0,
|
| 105 |
-
exif JSONB NOT NULL DEFAULT '{}',
|
| 106 |
-
meta JSONB NOT NULL DEFAULT '{}',
|
| 107 |
-
source JSONB NOT NULL DEFAULT '[]',
|
| 108 |
-
vector halfvec(1152) DEFAULT NULL,
|
| 109 |
-
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
| 110 |
-
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
|
| 111 |
-
);
|
| 112 |
-
```
|
| 113 |
-
|
| 114 |
-
2. Load csv file to database
|
| 115 |
-
|
| 116 |
-
2.1. Load the dataset from local file system to a remote PostgreSQL server:
|
| 117 |
-
|
| 118 |
-
```sql
|
| 119 |
-
\copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 120 |
-
\copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 121 |
-
\copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 122 |
-
...
|
| 123 |
-
```
|
| 124 |
-
|
| 125 |
-
2.2. Load the dataset from the PostgreSQL server's file system:
|
| 126 |
-
|
| 127 |
-
```sql
|
| 128 |
-
copy is_pd12m FROM 'data/0000000.csv' CSV HEADER;
|
| 129 |
-
copy is_pd12m FROM 'data/0000001.csv' CSV HEADER;
|
| 130 |
-
copy is_pd12m FROM 'data/0000002.csv' CSV HEADER;
|
| 131 |
-
...
|
| 132 |
-
```
|
| 133 |
-
|
| 134 |
-
3. Create Indexes
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
|
| 138 |
-
```sql
|
| 139 |
-
CREATE UNIQUE INDEX IF NOT EXISTS is_pd12m_url_index ON is_pd12m (url);
|
| 140 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_width_index ON is_pd12m (origin_width);
|
| 141 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_height_index ON is_pd12m (origin_height);
|
| 142 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_origin_storage_id_index ON is_pd12m (origin_storage_id);
|
| 143 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_storage_id_index ON is_pd12m (processed_storage_id);
|
| 144 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_width_index ON is_pd12m (processed_width);
|
| 145 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_processed_height_index ON is_pd12m (processed_height);
|
| 146 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_aspect_ratio_index ON is_pd12m (aspect_ratio);
|
| 147 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_exif_index ON is_pd12m USING gin(exif);
|
| 148 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_meta_index ON is_pd12m USING gin(meta);
|
| 149 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_source_index ON is_pd12m USING gin(source);
|
| 150 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_created_at_index ON is_pd12m (created_at);
|
| 151 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_updated_at_index ON is_pd12m (updated_at);
|
| 152 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_index ON is_pd12m USING vchordrq (vector halfvec_l2_ops) WITH (options = $$
|
| 153 |
-
residual_quantization = true
|
| 154 |
-
[build.internal]
|
| 155 |
-
lists = [20000]
|
| 156 |
-
build_threads = 6
|
| 157 |
-
spherical_centroids = false
|
| 158 |
-
$$);
|
| 159 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_index ON is_pd12m (caption) WHERE caption = '';
|
| 160 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_caption_long_index ON is_pd12m (caption_long) WHERE caption_long = '';
|
| 161 |
-
CREATE INDEX IF NOT EXISTS is_pd12m_vector_null_index ON is_pd12m (vector) WHERE vector IS NULL;
|
| 162 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|