Datasets:
Commit ·
df5f324
0
Parent(s):
Duplicate from HPAI-BSC/SuSy-Dataset
Browse filesCo-authored-by: Pablo Bernabeu <pabberpe@users.noreply.huggingface.co>
- .gitattributes +15 -0
- README.md +228 -0
- data/test.zip +3 -0
- data/train.zip +3 -0
- data/val.zip +3 -0
- susy_dataset.json +0 -0
.gitattributes
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Track zip files with Git LFS
|
| 2 |
+
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
|
| 4 |
+
# Track zip parts with Git LFS
|
| 5 |
+
*.z01 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.z02 filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.z03 filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.z04 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.z05 filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.z06 filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.z07 filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.z08 filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.z09 filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.z10 filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.z11 filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
pretty_name: SuSy Dataset
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-classification
|
| 5 |
+
size_categories:
|
| 6 |
+
- 10K<n<100K
|
| 7 |
+
tags:
|
| 8 |
+
- image
|
| 9 |
+
- ai-images
|
| 10 |
+
- synthetic-image-detection
|
| 11 |
+
configs:
|
| 12 |
+
- config_name: susy_dataset
|
| 13 |
+
data_files:
|
| 14 |
+
- split: train
|
| 15 |
+
path: data/train.zip
|
| 16 |
+
- split: val
|
| 17 |
+
path: data/val.zip
|
| 18 |
+
- split: test
|
| 19 |
+
path: data/test.zip
|
| 20 |
+
dataset_info:
|
| 21 |
+
features:
|
| 22 |
+
- name: image
|
| 23 |
+
dtype: image
|
| 24 |
+
- name: label
|
| 25 |
+
dtype:
|
| 26 |
+
class_label:
|
| 27 |
+
names:
|
| 28 |
+
'0': coco
|
| 29 |
+
'1': dalle-3-images
|
| 30 |
+
'2': diffusiondb
|
| 31 |
+
'3': midjourney-images
|
| 32 |
+
'4': midjourney_tti
|
| 33 |
+
'5': realisticSDXL
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
<div align="center">
|
| 37 |
+
<h2>SuSy Dataset: Synthetic Image Detection</h2>
|
| 38 |
+
The SuSy Dataset is a collection of authentic and synthetic images intended for training and evaluating synthetic content detectors. It was originally curated to train <a href="https://huggingface.co/HPAI-BSC/SuSy">SuSy</a> but can be used for any synthetic image detector model. This dataset is presented and used in the paper "<a href="https://arxiv.org/abs/2409.14128">Present and Future Generalization of Synthetic Image Detectors</a>".
|
| 39 |
+
<img src="https://cdn-uploads.huggingface.co/production/uploads/620683e7eeb1b73d904c96e5/Oy8RlHv9WuiznSpBct_d4.png" alt="image" width="300" height="auto">
|
| 40 |
+
</div>
|
| 41 |
+
<hr>
|
| 42 |
+
<div align="center" style="line-height: 1;">
|
| 43 |
+
<a href="https://arxiv.org/abs/2409.14128" target="_blank" style="margin: 2px;">
|
| 44 |
+
<img alt="Paper" src="https://img.shields.io/badge/arXiv-2409.14128-b31b1b.svg" style="display: inline-block; vertical-align: middle;"/>
|
| 45 |
+
</a>
|
| 46 |
+
<a href="https://github.com/HPAI-BSC/SuSy" target="_blank" style="margin: 2px;">
|
| 47 |
+
<img alt="Repository" src="https://img.shields.io/badge/Repository-GitHub-181717?logo=github&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 48 |
+
</a>
|
| 49 |
+
<a href="https://huggingface.co/HPAI-BSC/SuSy" target="_blank" style="margin: 2px;">
|
| 50 |
+
<img alt="Model" src="https://img.shields.io/badge/Model-Hugging%20Face-FFD21E?logo=huggingface" style="display: inline-block; vertical-align: middle;"/>
|
| 51 |
+
</a>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<div align="center" style="line-height: 1;">
|
| 55 |
+
<a href="https://huggingface.co/spaces/HPAI-BSC/SuSyGame" target="_blank" style="margin: 2px;">
|
| 56 |
+
<img alt="SuSy Challenge" src="https://img.shields.io/badge/SuSy%20Challenge-Hugging%20Face-FFD21E?logo=huggingface" style="display: inline-block; vertical-align: middle;"/>
|
| 57 |
+
</a>
|
| 58 |
+
<a href="https://huggingface.co/spaces/HPAI-BSC/SuSy" target="_blank" style="margin: 2px;">
|
| 59 |
+
<img alt="Interactive Demo" src="https://img.shields.io/badge/Interactive%20Demo-Hugging%20Face-FFD21E?logo=huggingface" style="display: inline-block; vertical-align: middle;"/>
|
| 60 |
+
</a>
|
| 61 |
+
<a href="https://colab.research.google.com/drive/15nxo0FVd-snOnj9TcX737fFH0j3SmS05" target="_blank" style="margin: 2px;">
|
| 62 |
+
<img alt="Code Demo" src="https://img.shields.io/badge/Code%20Demo-Colab-F9AB00?logo=googlecolab&logoColor=white" style="display: inline-block; vertical-align: middle;"/>
|
| 63 |
+
</a>
|
| 64 |
+
</div>
|
| 65 |
+
|
| 66 |
+
<div align="center" style="line-height: 1;">
|
| 67 |
+
<a href="https://hpai.bsc.es/" target="_blank" style="margin: 2px;">
|
| 68 |
+
<img alt="HPAI Website" src="https://img.shields.io/badge/HPAI-Website-blue" style="display: inline-block; vertical-align: middle;"/>
|
| 69 |
+
</a>
|
| 70 |
+
<a href="https://www.linkedin.com/company/hpai" target="_blank" style="margin: 2px;">
|
| 71 |
+
<img alt="LinkedIn" src="https://custom-icon-badges.demolab.com/badge/LinkedIn-0A66C2?logo=linkedin-white&logoColor=fff" style="display: inline-block; vertical-align: middle;"/>
|
| 72 |
+
</a>
|
| 73 |
+
<a href="https://bsky.app/profile/hpai.bsky.social" target="_blank" style="margin: 2px;">
|
| 74 |
+
<img alt="Bluesky" src="https://img.shields.io/badge/Bluesky-0285FF?logo=bluesky&logoColor=fff" style="display: inline-block; vertical-align: middle;"/>
|
| 75 |
+
</a>
|
| 76 |
+
</div>
|
| 77 |
+
|
| 78 |
+
**Image Examples**
|
| 79 |
+
|
| 80 |
+
| COCO | dalle-3-images | diffusiondb |
|
| 81 |
+
|:----:|:--------------:|:-----------:|
|
| 82 |
+
| <img src="https://cdn-uploads.huggingface.co/production/uploads/620683e7eeb1b73d904c96e5/pbblFS9FmtQjBpcmpKSr3.jpeg" alt="image" width="300" height="auto"> | <img src="https://cdn-uploads.huggingface.co/production/uploads/620683e7eeb1b73d904c96e5/M1qin2gFq0ncYhqn3e7bK.jpeg" alt="image" width="300" height="auto"> | <img src="https://cdn-uploads.huggingface.co/production/uploads/620683e7eeb1b73d904c96e5/Zee5lKGpC62MKFKzZ49qb.png" alt="image" width="300" height="auto"> |
|
| 83 |
+
|
| 84 |
+
| midjourney-images | midjourney-tti | realisticSDXL |
|
| 85 |
+
|:-----------------:|:--------------:|:-------------:|
|
| 86 |
+
| <img src="https://cdn-uploads.huggingface.co/production/uploads/620683e7eeb1b73d904c96e5/cG5_as0Dfa7TsE3RzCDyc.jpeg" alt="image" width="300" height="auto"> | <img src="https://cdn-uploads.huggingface.co/production/uploads/620683e7eeb1b73d904c96e5/8JEGhXGnb3lvDs0kfqU4h.png" alt="image" width="300" height="auto"> | <img src="https://cdn-uploads.huggingface.co/production/uploads/620683e7eeb1b73d904c96e5/aE79Ldjc5dVUk7p_gp5eI.png" alt="image" width="300" height="auto"> |
|
| 87 |
+
|
| 88 |
+
## Dataset Details
|
| 89 |
+
|
| 90 |
+
### Dataset Description
|
| 91 |
+
|
| 92 |
+
The SuSy Dataset is a curated collection of real and AI-generated images, collected for the training and evaluation of synthetic image detectors. It includes images from various sources to ensure diversity and representativeness.
|
| 93 |
+
|
| 94 |
+
- **Curated by:** [Pablo Bernabeu Perez](https://huggingface.co/pabberpe)
|
| 95 |
+
- **License:** Multiple licenses (see individual dataset details)
|
| 96 |
+
|
| 97 |
+
## Uses
|
| 98 |
+
|
| 99 |
+
### Direct Use
|
| 100 |
+
|
| 101 |
+
This dataset is intended for:
|
| 102 |
+
- Replicating experiments related to SuSy
|
| 103 |
+
- Training synthetic image detection and attribution models
|
| 104 |
+
- Evaluating synthetic image detection and attribution models
|
| 105 |
+
|
| 106 |
+
### Out-of-Scope Use
|
| 107 |
+
|
| 108 |
+
The SuSy Dataset is specifically designed for synthetic image detection, classification, and attribution tasks. Therefore, the following uses considered out-of-scope:
|
| 109 |
+
|
| 110 |
+
- Generating synthetic images: This dataset should not be used as training data for generative models or any attempts to create synthetic images.
|
| 111 |
+
- Image manipulation: The dataset should not be used to develop or train models for altering, enhancing, or manipulating images.
|
| 112 |
+
- Legal or forensic analysis: The dataset is not designed for use in legal proceedings or forensic investigations related to image authenticity.
|
| 113 |
+
- Content moderation: While the dataset contains both authentic and synthetic images, it is not intended for general content moderation purposes beyond synthetic image detection.
|
| 114 |
+
|
| 115 |
+
## Dataset Structure
|
| 116 |
+
|
| 117 |
+
The dataset consists of two main types of images:
|
| 118 |
+
|
| 119 |
+
- Real-world images: Photographs from the COCO dataset
|
| 120 |
+
- Synthetic images: AI-generated images from five different generators
|
| 121 |
+
|
| 122 |
+
### Training Data
|
| 123 |
+
|
| 124 |
+
| Dataset | Year | Train | Validation | Test | Total |
|
| 125 |
+
|:-----------------:|:----:|:-----:|:----------:|:-----:|:-----:|
|
| 126 |
+
| COCO | 2017 | 2,967 | 1,234 | 1,234 | 5,435 |
|
| 127 |
+
| dalle-3-images | 2023 | 987 | 330 | 330 | 1,647 |
|
| 128 |
+
| diffusiondb | 2022 | 2,967 | 1,234 | 1,234 | 5,435 |
|
| 129 |
+
| realisticSDXL | 2023 | 2,967 | 1,234 | 1,234 | 5,435 |
|
| 130 |
+
| midjourney-tti | 2022 | 2,718 | 906 | 906 | 4,530 |
|
| 131 |
+
| midjourney-images | 2023 | 1,845 | 617 | 617 | 3,079 |
|
| 132 |
+
|
| 133 |
+
#### Authentic Images
|
| 134 |
+
- [COCO](https://cocodataset.org/) (Common Objects in Context): A large-scale object detection, segmentation, and captioning dataset. It includes over 330,000 images, with 200,000 labeled using 80 object categories. For this dataset, we use a random subset of 5,435 images.
|
| 135 |
+
- **License:** Creative Commons Attribution 4.0 license
|
| 136 |
+
|
| 137 |
+
#### Synthetic Images
|
| 138 |
+
- [dalle-3-images](https://huggingface.co/datasets/ehristoforu/dalle-3-images): Contains 3,310 unique images generated using DALL-E 3. The dataset does not include the prompts used to generate the images.
|
| 139 |
+
- **License:** MIT license
|
| 140 |
+
|
| 141 |
+
- [diffusiondb](https://poloclub.github.io/diffusiondb/): A large-scale text-to-image prompt dataset containing 14 million images generated by Stable Diffusion 1.x series models (2022). We use a random subset of 5,435 images.
|
| 142 |
+
- **License:** CC0 1.0 Universal license
|
| 143 |
+
|
| 144 |
+
- [realisticSDXL](https://huggingface.co/datasets/DucHaiten/DucHaiten-realistic-SDXL): Contains images generated using the Stable Diffusion XL (SDXL) model released in July 2023. We use only the "realistic" category, which contains 5,435 images.
|
| 145 |
+
- **License:** CreativeML OpenRAIL-M license
|
| 146 |
+
|
| 147 |
+
- [midjourney-tti](https://www.kaggle.com/datasets/succinctlyai/midjourney-texttoimage): Contains images generated using Midjourney V1 or V2 models (early 2022). The original dataset provided URLs, which were scraped to obtain the images.
|
| 148 |
+
- **License:** CC0 1.0 Universal license (for links only, images are property of users who generated them)
|
| 149 |
+
|
| 150 |
+
- [midjourney-images](https://huggingface.co/datasets/ehristoforu/midjourney-images): Contains 4,308 unique images generated using Midjourney V5 and V6 models (2023).
|
| 151 |
+
- **License:** MIT license
|
| 152 |
+
|
| 153 |
+
## Dataset Creation
|
| 154 |
+
|
| 155 |
+
### Curation Rationale
|
| 156 |
+
|
| 157 |
+
This dataset was created to provide a comprehensive set of both real and AI-generated images for training and evaluating synthetic content detectors. The curation process aimed to:
|
| 158 |
+
|
| 159 |
+
- Include diverse and high-quality data from multiple sources
|
| 160 |
+
- Represent various AI image generation models (DALL-E, Midjourney, Stable Diffusion)
|
| 161 |
+
- Include both early (2022) and more recent (2023) AI-generated images to study the impact of model evolution
|
| 162 |
+
|
| 163 |
+
### Source Data
|
| 164 |
+
|
| 165 |
+
#### Data Collection and Processing
|
| 166 |
+
|
| 167 |
+
- COCO and diffusiondb datasets were undersampled to 5,435 images each to balance with other datasets.
|
| 168 |
+
- The realisticSDXL dataset uses only the "realistic" category images.
|
| 169 |
+
- Existing train, validation, and test partitions are respected where available.
|
| 170 |
+
- For datasets without predefined splits, a 60%-20%-20% random split is performed for train, validation and test sets respectively.
|
| 171 |
+
- The midjourney-tti dataset had collage images and mosaics removed.
|
| 172 |
+
- The dalle-3-images and midjourney-images datasets were deduplicated.
|
| 173 |
+
|
| 174 |
+
#### Who are the source data producers?
|
| 175 |
+
|
| 176 |
+
- Real-world images: Photographers (COCO dataset)
|
| 177 |
+
- Synthetic images: Various AI image generation models (DALL-E, Stable Diffusion and Midjourney)
|
| 178 |
+
|
| 179 |
+
## Bias, Risks, and Limitations
|
| 180 |
+
|
| 181 |
+
- The dataset may not fully represent the entire spectrum of real-world or AI-generated images.
|
| 182 |
+
- The performance of models trained on this dataset may vary depending on the specific characteristics of each subset.
|
| 183 |
+
- As AI image generation technology rapidly evolves, the synthetic images in this dataset may become less representative of current AI capabilities over time.
|
| 184 |
+
|
| 185 |
+
### Recommendations
|
| 186 |
+
|
| 187 |
+
Users should be aware that:
|
| 188 |
+
- This dataset contains both real and AI-generated images, each subject to its own license depending on the dataset of origin.
|
| 189 |
+
- The dataset is specifically curated for synthetic image detection and attribution, and may not be suitable for other computer vision tasks without modification.
|
| 190 |
+
- When using this dataset, proper attribution should be given to the original sources as per their respective licenses.
|
| 191 |
+
- Regular updates to the dataset may be necessary to keep pace with advancements in AI image generation technology.
|
| 192 |
+
|
| 193 |
+
## More Information
|
| 194 |
+
|
| 195 |
+
For more detailed information about the dataset composition and the SuSy model, please refer to the original [research paper](https://arxiv.org/abs/2409.14128).
|
| 196 |
+
|
| 197 |
+
**BibTeX:**
|
| 198 |
+
|
| 199 |
+
```bibtex
|
| 200 |
+
@misc{bernabeu2024susy,
|
| 201 |
+
title={Present and Future Generalization of Synthetic Image Detectors},
|
| 202 |
+
author={Pablo Bernabeu-Perez and Enrique Lopez-Cuena and Dario Garcia-Gasulla},
|
| 203 |
+
year={2024},
|
| 204 |
+
eprint={2409.14128},
|
| 205 |
+
archivePrefix={arXiv},
|
| 206 |
+
primaryClass={cs.CV},
|
| 207 |
+
url={https://arxiv.org/abs/2409.14128},
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
```
|
| 211 |
+
|
| 212 |
+
```bibtex
|
| 213 |
+
@thesis{bernabeu2024aidetection,
|
| 214 |
+
title={Detecting and Attributing AI-Generated Images with Machine Learning},
|
| 215 |
+
author={Bernabeu Perez, Pablo},
|
| 216 |
+
school={UPC, Facultat d'Informàtica de Barcelona, Departament de Ciències de la Computació},
|
| 217 |
+
year={2024},
|
| 218 |
+
month={06}
|
| 219 |
+
}
|
| 220 |
+
```
|
| 221 |
+
|
| 222 |
+
## Model Card Authors
|
| 223 |
+
|
| 224 |
+
[Pablo Bernabeu Perez](https://huggingface.co/pabberpe)
|
| 225 |
+
|
| 226 |
+
## Model Card Contact
|
| 227 |
+
|
| 228 |
+
For further inquiries, please contact [HPAI](mailto:hpai@bsc.es)
|
data/test.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1cf4d744686274ce7b7624f83cb04247792d6ad48d1f7d4e944faa880ebfe242
|
| 3 |
+
size 6020979522
|
data/train.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c349404c2f2fff72348ace1c450b92e5bdf1a9d6508a5c6cc38bbfe002ecdc8
|
| 3 |
+
size 15189567725
|
data/val.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c41beef0811e5dd70db3923290ee1fc57a73eb312bef9de5ad573850578775ff
|
| 3 |
+
size 4725427667
|
susy_dataset.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|