The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: JobManagerCrashedError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
image_name
string | format
string | resolution
sequence | mode
string | image_data
unknown | model_name
string | nsfw_flag
bool | prompt
string | real_source
string | subset
string | split
string | label
int64 |
---|---|---|---|---|---|---|---|---|---|---|---|
00000162.png | PNG | [
512,
512
] | RGB | "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nIy9d6AlR3Ev/KvqCSfeHDfvarVaSbvKOSMQICEQCkg(...TRUNCATED) | 0xJustin/Dungeons-and-Diffusion | false | goula memo lotto game sold by gifts for little hands | LAION | Systematic | train | 1 |
00000023.png | PNG | [
512,
512
] | RGB | "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nDz92Y4j2ZItCMqwR1UlaebuEedk5q26BVQX0P/Yjf7(...TRUNCATED) | 0xJustin/Dungeons-and-Diffusion | false | sold -louis vuitton amarente zippy coin lovely | LAION | Systematic | train | 1 |
00000150.png | PNG | [
512,
512
] | RGB | "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nEz93XolR64sCJoB7rHITNU+39fPMg819/Pgp/tsKck(...TRUNCATED) | 0xJustin/Dungeons-and-Diffusion | false | common toad encountered during amphibian survey | LAION | Systematic | train | 1 |
00000130.png | PNG | [
512,
512
] | RGB | "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nLT9d4AsR3EHjn+qumc2XHp3Lz/lLJEUSAIRjQ0YMGC(...TRUNCATED) | 0xJustin/Dungeons-and-Diffusion | false | montreal grand prix 2018 von icrdesigns | LAION | Systematic | train | 1 |
00000072.png | PNG | [
512,
512
] | RGB | "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nGz9+bMtSXIeBrp7RGae/Zy7va1eLV3VOxo7CBACiFX(...TRUNCATED) | 0xJustin/Dungeons-and-Diffusion | false | ge profile™ stainless steel interior dishwasher with hidden controls | LAION | Systematic | train | 1 |
00000259.png | PNG | [
512,
512
] | RGB | "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nCT859dua36dBf7utPJ6cnhz2nnvc84+OVTVqSxVyZJ(...TRUNCATED) | 0xJustin/Dungeons-and-Diffusion | false | baby's first christmas mouse ornament ornament | LAION | Systematic | train | 1 |
00000146.png | PNG | [
512,
512
] | RGB | "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nEz9aZMkR5IlCD5mFlFVM/MjIgAkso6eod5e2pkv/f9(...TRUNCATED) | 0xJustin/Dungeons-and-Diffusion | false | pistachio macaroons on pistachio nuts photo | LAION | Systematic | train | 1 |
00000238.png | PNG | [
512,
512
] | RGB | "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nCT9V8+1bbpmhV35znHm+aQ3f6mq1upmNRgHmX9hyRv(...TRUNCATED) | 0xJustin/Dungeons-and-Diffusion | false | slashgear 101 this week's facebook news feed redesign | LAION | Systematic | train | 1 |
00000160.png | PNG | [
512,
512
] | RGB | "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nFT93bJkR48rgAFgVuvY7/86vnCE38lnupKEL8CsHit(...TRUNCATED) | 0xJustin/Dungeons-and-Diffusion | false | leather clutch bag - 12 | LAION | Systematic | train | 1 |
00000004.png | PNG | [
512,
512
] | RGB | "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nEz9WZBmWXIeiH3ufu7919gjM3KpyqyszKy9el+B7gZ(...TRUNCATED) | 0xJustin/Dungeons-and-Diffusion | false | metallic baroque charger plates | LAION | Systematic | train | 1 |
Community Forensics: Using Thousands of Generators to Train Fake Image Detectors (CVPR 2025)
We are currently working on releasing a smaller version of our dataset paired with redistributable "real" data for easier prototyping.
Changes:
04/09/25: Initial version released.
Dataset Summary
- The Community Forensics dataset is a dataset intended for developing and benchmarking forensics methods that detect or analyze AI-generated images. It contains 2.7M generated images collected from 4803 generator models.
Supported Tasks
- Image Classification: identify whether the given image is AI-generated. We mainly study this task in our paper, but other tasks may be possible with our dataset.
Dataset Structure
Data Instances
Our dataset is formatted in a Parquet data frame of the following structure:
{
"image_name": "00000162.png",
"format": "PNG",
"resolution": "[512, 512]",
"mode": "RGB",
"image_data": "b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\..."
"model_name": "stabilityai/stable-diffusion-2",
"nsfw_flag": False,
"prompt": "montreal grand prix 2018 von icrdesigns",
"real_source": "LAION",
"subset": "Systematic",
"split": "train",
"label": "1"
}
Data Fields
image_name
: Filename of an image. format
: PIL image format. resolution
: Image resolution. mode
: PIL image mode (e.g., RGB) image_data
: Image data in byte format. Can be read using Python's BytesIO. model_name
: Name of the model used to sample this image. Has format {author_name}/{model_name} for Systematic
subset, and {model_name} for other subsets. nsfw_flag
: NSFW flag determined using Stable Diffusion Safety Checker. prompt
: Input prompt (if exists). real_source
: Paired real dataset(s) that was used to source the prompts or to train the generators. subset
: Denotes which subset the image belongs to (Systematic: Hugging Face models, Manual: manually downloaded models, Commercial: commercial models). split
: Train/test split. label
: Fake/Real label. (1: Fake, 0: Real)
- Additional metadata such as model architecture, hyperparameters, and Hugging Face pipeline used can be found under data/metadata.
Data splits
Systematic
(1,919,493 images): Systematically downloaded subset of the data (data downloaded from Hugging Face via automatic pipeline) Manual
(774,023 images): Manually downloaded subset of the data Commercial
(14,918 images): Commercial models subset PublicEval
(51,836 images): Evaluation set where generated images are paired with COCO or FFHQ for license-compliant redistribution. Note that these are not the "source" datasets used to sample the generated images
Usage examples
Default train/eval settings:
import datasets as ds
import PIL.Image as Image
import io
# default training set
commfor_train = ds.load_dataset("OwensLab/CommunityForensics", split="Systematic+Manual", cache_dir="~/.cache/huggingface/datasets")
commfor_eval = ds.load_dataset("OwensLab/CommunityForensics", split="PublicEval", cache_dir="~/.cache/huggingface/datasets")
# optionally shuffle the dataset
commfor_train = commfor_train.shuffle(seed=123, writer_batch_size=3000)
for i, data in enumerate(commfor_train):
img, label = Image.open(io.BytesIO(data['image_data'])), data['label']
## Your operations here ##
# e.g., img_torch = torchvision.transforms.functional.pil_to_tensor(img)
Note:
- Downloading and indexing the data can take some time, but only for the first time. Downloading may use up to 2.2TB (1.1TB data + 1.1TB re-indexed
arrow
files) - It is possible to randomly access data by passing an index (e.g.,
commfor_train[10]
,commfor_train[247]
). - It may be wise to set
cache_dir
to some other directory if your home directory is limited. By default, it will download data to~/.cache/huggingface/datasets
. - Not all images have a
prompt
. This can be because the generator does not require text prompts (e.g., unconditional, class-conditional) or due to an error. In cases where you need a specific portion of data, you can use the.filter()
method (e.g., for data with prompts,commfor_train.filter(lambda x: x['prompt'] != "", num_proc=8)
)
It is also possible to use streaming for some use cases (e.g., downloading only a certain subset or a small portion of data).
import datasets as ds
import PIL.Image as Image
import io
# steaming only the systematic set. Note that when streaming, you can only load specific splits
commfor_sys_stream = ds.load_dataset("OwensLab/CommunityForensics", split='Systematic', streaming=True)
# streaming only the evaluation set
commfor_eval_stream = ds.load_dataset("OwensLab/CommunityForensics", split='PublicEval', streaming=True)
# optionally shuffle the streaming dataset
commfor_sys_stream = commfor_sys_stream.shuffle(seed=123, buffer_size=3000)
# usage example
for i, data in enumerate(commfor_sys_stream):
if i>=10000: # use only first 10000 samples
break
img, label = Image.open(io.BytesIO(data['image_data'])), data['label']
## Your operations here ##
# e.g., img_torch = torchvision.transforms.functional.pil_to_tensor(img)
Please check Hugging Face documentation for more usage examples.
Training fake image classifiers
For training a fake image classifier, it is necessary to pair the generated images with "real" images (here, "real" refers to images that are not generated by AI). In our paper, we used 11 different image datasets: LAION, ImageNet, COCO, FFHQ, CelebA, MetFaces, AFHQ-v2, Forchheim, IMD2020, Landscapes HQ, and VISION, for sampling the generators and training the classifiers. To accurately reproduce our training settings, it is necessary to download all datasets and pair them with the generated images. We understand that this may be inconvenient for simple prototyping, and thus are also working on releasing a smaller subset of our dataset, paired with datasets with licenses that allow redistribution (e.g., COCO, FFHQ).
Dataset Creation
Curation Rationale
This dataset is created to address the limited model diversity of the existing datasets for generated image detection. While some existing datasets contain millions of images, they are typically sampled from handful of generator models. We instead sample 2.7M images from 4803 generator models, approximately 34 times more generators than the most extensive previous dataset that we are aware of.
Collection Methodology
We collect generators in three different subgroups. (1) We systematically download and sample open source latent diffusion models from Hugging Face. (2) We manually sample open source generators with various architectures and training procedures. (3) We sample from both open and closed commercially available generators.
Personal and Sensitive Information
The dataset does not contain any sensitive identifying information (i.e., does not contain data that reveals information such as racial or ethnic origin, sexual orientation, religious or political beliefs).
Considerations of Using the Data
Social Impact of Dataset
This dataset may be useful for researchers in developing and benchmarking forensics methods. Such methods may aid users in better understanding the given image. However, we believe the classifiers, at least the ones that we have trained or benchmarked, still show far too high error rates to be used directly in the wild, and can lead to unwanted consequences (e.g., falsely accusing an author of creating fake images or allowing generated content to be certified as real).
Discussion of Biases
The dataset has been primarily sampled from LAION captions. This may introduce biases that could be present in web-scale data (e.g., favoring human photos instead of other categories of photos). In addition, a vast majority of the generators we collect are derivatives of Stable Diffusion, which may introduce bias towards detecting certain types of generators.
Other Known Limitations
The generative models are sourced from the community and may contain inappropriate content. While in many contexts it is important to detect such images, these generated images may require further scrutiny before being used in other downstream applications.
Additional Information
Acknowledgement
We thank the creators of the many open source models that we used to collect the Community Forensics dataset. We thank Chenhao Zheng, Cameron Johnson, Matthias Kirchner, Daniel Geng, Ziyang Chen, Ayush Shrivastava, Yiming Dou, Chao Feng, Xuanchen Lu, Zihao Wei, Zixuan Pan, Inbum Park, Rohit Banerjee, and Ang Cao for the valuable discussions and feedback. This research was developed with funding from the Defense Advanced Research Projects Agency (DARPA) under Contract No. HR001120C0123.
Licensing Information
We release the dataset with a cc-by-4.0
license for research purposes only. In addition, we note that each image in this dataset has been generated by the models with their respective licenses. We therefore provide metadata of all models present in our dataset with their license information. A vast majority of the generators use the CreativeML OpenRAIL-M license. Please refer to the metadata for detailed licensing information for your specific application.
Citation Information
Please cite our work as below if you used our dataset for your project.
@misc{park2024communityforensics,
title={Community Forensics: Using Thousands of Generators to Train Fake Image Detectors},
author={Jeongsoo Park and Andrew Owens},
year={2024},
eprint={2411.04125},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2411.04125},
}
- Downloads last month
- 610