Update README.md
Browse files
README.md
CHANGED
|
@@ -25,8 +25,10 @@ source_datasets:
|
|
| 25 |
task_categories:
|
| 26 |
- other
|
| 27 |
pretty_name: Civistash — Daily Top CivitAI Images
|
| 28 |
-
|
| 29 |
-
-
|
|
|
|
|
|
|
| 30 |
---
|
| 31 |
|
| 32 |
# Dataset Card for Civistash
|
|
@@ -37,33 +39,45 @@ config_names:
|
|
| 37 |
[CivitAI](https://civitai.com), the largest community platform for
|
| 38 |
AI-generated media. Each day it fetches the most-reacted-to content on the
|
| 39 |
platform, downloads the media files, and stores them alongside full metadata
|
| 40 |
-
sidecars in timestamped daily
|
| 41 |
|
| 42 |
-
The dataset is designed as a **rolling archive** — each
|
| 43 |
-
self-contained partition of one day's popular content, making it
|
| 44 |
-
downstream projects to consume a specific date range without
|
| 45 |
-
entire repository.
|
| 46 |
|
| 47 |
-
|
| 48 |
-
CivitAI API response for that item: model info, generation parameters
|
| 49 |
-
(prompt, negative prompt, CFG scale, sampler, seed, steps), base model,
|
| 50 |
-
dimensions, creator username, tags, stats (reactions, comments, cry count),
|
| 51 |
-
and a `_civistash` provenance block with download timestamp and source URL.
|
| 52 |
|
| 53 |
-
|
|
|
|
|
|
|
| 54 |
|
| 55 |
```
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
└── 55555555.json
|
| 64 |
```
|
| 65 |
|
| 66 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 67 |
|
| 68 |
```json
|
| 69 |
{
|
|
@@ -85,7 +99,7 @@ Each sidecar JSON looks like:
|
|
| 85 |
"modelVersionId": 98765,
|
| 86 |
"modelId": 5432,
|
| 87 |
"username": "some_creator",
|
| 88 |
-
"createdAt": "2026-06-
|
| 89 |
"stats": {
|
| 90 |
"reactionCount": 1420,
|
| 91 |
"commentCount": 89,
|
|
@@ -95,7 +109,13 @@ Each sidecar JSON looks like:
|
|
| 95 |
"tags": [
|
| 96 |
{ "id": 1, "name": "landscape" },
|
| 97 |
{ "id": 2, "name": "digital painting" }
|
| 98 |
-
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 99 |
}
|
| 100 |
```
|
| 101 |
|
|
@@ -124,17 +144,19 @@ descriptions.
|
|
| 124 |
|
| 125 |
### Data Splits
|
| 126 |
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
is a raw archive intended for downstream processing.
|
| 130 |
|
| 131 |
| Split | Description |
|
| 132 |
|-------|-------------|
|
| 133 |
-
| `
|
| 134 |
|
| 135 |
### Data Fields
|
| 136 |
|
| 137 |
-
|
|
|
|
|
|
|
|
|
|
| 138 |
|---|---|---|
|
| 139 |
| `id` | integer | CivitAI image ID |
|
| 140 |
| `url` | string | Direct media URL on CivitAI CDN |
|
|
@@ -150,6 +172,10 @@ is a raw archive intended for downstream processing.
|
|
| 150 |
| `createdAt` | datetime | When the image was posted |
|
| 151 |
| `stats` | object | Reaction count, comment count, cry count, like count |
|
| 152 |
| `tags` | array | Tag objects with `id` and `name` |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
|
| 154 |
## Dataset Creation
|
| 155 |
|
|
@@ -175,9 +201,10 @@ HTML is performed.
|
|
| 175 |
across all date partitions).
|
| 176 |
3. Download each image sequentially with retry backoff (1s/2s/4s) on rate
|
| 177 |
limits and transport errors.
|
| 178 |
-
4. Write a JSON sidecar containing the full API response plus a
|
| 179 |
-
block.
|
| 180 |
-
5.
|
|
|
|
| 181 |
Hugging Face dataset repository.
|
| 182 |
|
| 183 |
### Annotations
|
|
@@ -214,9 +241,10 @@ licenses and terms.
|
|
| 214 |
## How to self-host / run the archiver
|
| 215 |
|
| 216 |
This dataset is produced by **Civistash**, an open-source Rust CLI tool.
|
| 217 |
-
You can run your own instance to archive different periods, sort orders,
|
|
|
|
| 218 |
|
| 219 |
-
**Source code:** [github.com/Hyphonical/
|
| 220 |
|
| 221 |
```bash
|
| 222 |
# One-shot: fetch and bundle today's top 200 images
|
|
@@ -231,7 +259,7 @@ echo "HUGGINGFACE_TOKEN=hf_…" >> .env
|
|
| 231 |
docker compose up -d
|
| 232 |
```
|
| 233 |
|
| 234 |
-
Full documentation is available in the [project README](https://github.com/Hyphonical/
|
| 235 |
|
| 236 |
## Additional Information
|
| 237 |
|
|
@@ -246,7 +274,7 @@ Media and metadata sourced from [CivitAI](https://civitai.com). Refer to
|
|
| 246 |
the [CivitAI Terms of Service](https://civitai.com/content/tos) and
|
| 247 |
individual content licenses for usage terms.
|
| 248 |
|
| 249 |
-
The Civistash tool itself is licensed under the [MIT License](https://github.com/Hyphonical/
|
| 250 |
|
| 251 |
### Citation
|
| 252 |
|
|
@@ -258,12 +286,12 @@ If you use this dataset in research, please cite:
|
|
| 258 |
title = {Civistash: Daily Top CivitAI Images Archive},
|
| 259 |
year = {2026},
|
| 260 |
publisher = {Hugging Face},
|
| 261 |
-
howpublished = {\url{https://huggingface.co/datasets/Hyphonical/
|
| 262 |
-
note = {Archived with the Civistash tool: \url{https://github.com/Hyphonical/
|
| 263 |
}
|
| 264 |
```
|
| 265 |
|
| 266 |
### Contributions
|
| 267 |
|
| 268 |
Archiving is fully automated. For issues or feature requests, please open an
|
| 269 |
-
issue on the [GitHub repository](https://github.com/Hyphonical/
|
|
|
|
| 25 |
task_categories:
|
| 26 |
- other
|
| 27 |
pretty_name: Civistash — Daily Top CivitAI Images
|
| 28 |
+
configs:
|
| 29 |
+
- config_name: default
|
| 30 |
+
data_files: "*.tar.gz"
|
| 31 |
+
default: true
|
| 32 |
---
|
| 33 |
|
| 34 |
# Dataset Card for Civistash
|
|
|
|
| 39 |
[CivitAI](https://civitai.com), the largest community platform for
|
| 40 |
AI-generated media. Each day it fetches the most-reacted-to content on the
|
| 41 |
platform, downloads the media files, and stores them alongside full metadata
|
| 42 |
+
sidecars in timestamped daily WebDataset shards.
|
| 43 |
|
| 44 |
+
The dataset is designed as a **rolling archive** — each `.tar.gz` shard is a
|
| 45 |
+
self-contained WebDataset partition of one day's popular content, making it
|
| 46 |
+
easy for downstream projects to consume a specific date range without
|
| 47 |
+
processing the entire repository.
|
| 48 |
|
| 49 |
+
## Format
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
+
This is a **WebDataset** — every `.tar.gz` shard contains paired files
|
| 52 |
+
sharing the same stem (the CivitAI image ID). A sample is the tuple of
|
| 53 |
+
all files with a given stem:
|
| 54 |
|
| 55 |
```
|
| 56 |
+
2026-06-08.tar.gz
|
| 57 |
+
├── 12345678.png # media file
|
| 58 |
+
├── 12345678.json # full CivitAI metadata
|
| 59 |
+
├── 98765432.jpg # media file
|
| 60 |
+
├── 98765432.json # full CivitAI metadata
|
| 61 |
+
├── 55555555.mp4 # video file
|
| 62 |
+
└── 55555555.json # full CivitAI metadata
|
|
|
|
| 63 |
```
|
| 64 |
|
| 65 |
+
The dataset viewer groups files by stem and decodes them per extension:
|
| 66 |
+
|
| 67 |
+
| Extension | Decoded as |
|
| 68 |
+
|---|---|
|
| 69 |
+
| `.jpg`, `.png`, `.webp` | `Image` (preview) |
|
| 70 |
+
| `.mp4` | `Video` |
|
| 71 |
+
| `.json` | `Json` (full sidecar, see schema below) |
|
| 72 |
+
|
| 73 |
+
One row in the viewer = one image/video. A shard is one day.
|
| 74 |
+
|
| 75 |
+
### Sidecar JSON schema
|
| 76 |
+
|
| 77 |
+
Each `<id>.json` sidecar contains the full CivitAI API response for that
|
| 78 |
+
item: model info, generation parameters, base model, dimensions, creator
|
| 79 |
+
username, tags, stats — plus a `_civistash` provenance block with the
|
| 80 |
+
download timestamp, source URL, on-disk path, and archive date.
|
| 81 |
|
| 82 |
```json
|
| 83 |
{
|
|
|
|
| 99 |
"modelVersionId": 98765,
|
| 100 |
"modelId": 5432,
|
| 101 |
"username": "some_creator",
|
| 102 |
+
"createdAt": "2026-06-08T10:30:00.000Z",
|
| 103 |
"stats": {
|
| 104 |
"reactionCount": 1420,
|
| 105 |
"commentCount": 89,
|
|
|
|
| 109 |
"tags": [
|
| 110 |
{ "id": 1, "name": "landscape" },
|
| 111 |
{ "id": 2, "name": "digital painting" }
|
| 112 |
+
],
|
| 113 |
+
"_civistash": {
|
| 114 |
+
"downloaded_at": "2026-06-08T14:30:00Z",
|
| 115 |
+
"source_url": "https://image.civitai.com/…",
|
| 116 |
+
"stored_as": "2026-06-08/12345678.png",
|
| 117 |
+
"archive_date": "2026-06-08"
|
| 118 |
+
}
|
| 119 |
}
|
| 120 |
```
|
| 121 |
|
|
|
|
| 144 |
|
| 145 |
### Data Splits
|
| 146 |
|
| 147 |
+
There is no train/validation/test split — this is a raw archive. One shard
|
| 148 |
+
per day, named `YYYY-MM-DD.tar.gz`.
|
|
|
|
| 149 |
|
| 150 |
| Split | Description |
|
| 151 |
|-------|-------------|
|
| 152 |
+
| `default` (train) | Every image from every daily shard, ordered by date |
|
| 153 |
|
| 154 |
### Data Fields
|
| 155 |
|
| 156 |
+
The sidecar JSON is exposed as the `json` column. The media file is exposed
|
| 157 |
+
as `jpg` / `png` / `webp` / `mp4` depending on its type. Other fields:
|
| 158 |
+
|
| 159 |
+
| Sidecar key | Type | Description |
|
| 160 |
|---|---|---|
|
| 161 |
| `id` | integer | CivitAI image ID |
|
| 162 |
| `url` | string | Direct media URL on CivitAI CDN |
|
|
|
|
| 172 |
| `createdAt` | datetime | When the image was posted |
|
| 173 |
| `stats` | object | Reaction count, comment count, cry count, like count |
|
| 174 |
| `tags` | array | Tag objects with `id` and `name` |
|
| 175 |
+
| `_civistash.downloaded_at` | datetime | Civitash fetch timestamp |
|
| 176 |
+
| `_civistash.source_url` | string | Same as `url`, kept for provenance |
|
| 177 |
+
| `_civistash.stored_as` | string | Local on-disk path (relative to stash root) |
|
| 178 |
+
| `_civistash.archive_date` | string | YYYY-MM-DD — which daily shard this lives in |
|
| 179 |
|
| 180 |
## Dataset Creation
|
| 181 |
|
|
|
|
| 201 |
across all date partitions).
|
| 202 |
3. Download each image sequentially with retry backoff (1s/2s/4s) on rate
|
| 203 |
limits and transport errors.
|
| 204 |
+
4. Write a JSON sidecar containing the full API response plus a `_civistash`
|
| 205 |
+
provenance block.
|
| 206 |
+
5. Bundle the day's partition into a `.tar.gz` WebDataset shard (file pairs
|
| 207 |
+
at the tarball root, grouped by CivitAI image ID) and upload to this
|
| 208 |
Hugging Face dataset repository.
|
| 209 |
|
| 210 |
### Annotations
|
|
|
|
| 241 |
## How to self-host / run the archiver
|
| 242 |
|
| 243 |
This dataset is produced by **Civistash**, an open-source Rust CLI tool.
|
| 244 |
+
You can run your own instance to archive different periods, sort orders,
|
| 245 |
+
NSFW levels, or upload to your own Hugging Face repo.
|
| 246 |
|
| 247 |
+
**Source code:** [github.com/Hyphonical/Civistash](https://github.com/Hyphonical/Civistash)
|
| 248 |
|
| 249 |
```bash
|
| 250 |
# One-shot: fetch and bundle today's top 200 images
|
|
|
|
| 259 |
docker compose up -d
|
| 260 |
```
|
| 261 |
|
| 262 |
+
Full documentation is available in the [project README](https://github.com/Hyphonical/Civistash).
|
| 263 |
|
| 264 |
## Additional Information
|
| 265 |
|
|
|
|
| 274 |
the [CivitAI Terms of Service](https://civitai.com/content/tos) and
|
| 275 |
individual content licenses for usage terms.
|
| 276 |
|
| 277 |
+
The Civistash tool itself is licensed under the [MIT License](https://github.com/Hyphonical/Civistash/blob/main/LICENSE).
|
| 278 |
|
| 279 |
### Citation
|
| 280 |
|
|
|
|
| 286 |
title = {Civistash: Daily Top CivitAI Images Archive},
|
| 287 |
year = {2026},
|
| 288 |
publisher = {Hugging Face},
|
| 289 |
+
howpublished = {\url{https://huggingface.co/datasets/Hyphonical/Civistash}},
|
| 290 |
+
note = {Archived with the Civistash tool: \url{https://github.com/Hyphonical/Civistash}}
|
| 291 |
}
|
| 292 |
```
|
| 293 |
|
| 294 |
### Contributions
|
| 295 |
|
| 296 |
Archiving is fully automated. For issues or feature requests, please open an
|
| 297 |
+
issue on the [GitHub repository](https://github.com/Hyphonical/Civistash).
|