File size: 4,352 Bytes
ac112ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6fe1304
ac112ed
 
6fe1304
ac112ed
6fe1304
 
ac112ed
 
 
 
 
 
 
694d632
 
 
89c4fe9
 
ac112ed
3a84681
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
dataset_info:
  features:
  - name: image
    dtype: image
  - name: label
    dtype:
      class_label:
        names:
          '0': real
          '1': fake
  - name: generator
    dtype:
      class_label:
        names:
          '0': Real
          '1': ADM
          '2': BigGAN
          '3': GLIDE
          '4': Midjourney
          '5': SD14
          '6': SD15
          '7': VQDM
          '8': Wukong
  splits:
  - name: train
    num_bytes: 6558732103
    num_examples: 28000
  - name: validation
    num_bytes: 1748767328
    num_examples: 7000
  download_size: 8359198723
  dataset_size: 8307499431
configs:
- config_name: default
  data_files:
  - split: train
    path: data/train-*
  - split: validation
    path: data/validation-*
license: cc-by-nc-sa-4.0
task_categories:
- image-classification
language:
- en
---

# Tiny GenImage Dataset

## 📝 Dataset Description

### Dataset Summary

The Tiny GenImage Dataset is a curated, scaled-down collection of images and associated metadata designed to train, validate, and benchmark models for detecting and identifying artificially generated content. The dataset contains a mix of real-world images alongside those generated by prominent AI models, including various diffusion models (like Stable Diffusion 1.4/1.5, GLIDE, Midjourney, ADM, VQDM, Wukong) and GANs (BigGAN).

Each image is labeled under two categories, enabling researchers and developers to tackle two distinct, high-value computer vision tasks: binary real/fake classification and multi-class source model identification.

### Supported Tasks and Leaderboards

This dataset directly supports two critical image classification tasks:

|**Task ID**|**Task Name**|**Description**|**Output Classes**|
|---|---|---|---|
|**Task A**|Binary Veracity Classification|Classifying images as either real or fake.|2 (real, fake)|
|**Task B**|AI Model Source Identification|Identifying the specific AI generation model used for images labeled as AI-Generated.|9 (Real, ADM, BigGAN, GLIDE, Midjourney, SD14, SD15, VQDM, Wukong)|

### Languages

The descriptive text, including all class labels and metadata, is in English (en).

## 🗂️ Data Splits

The dataset is divided into training and validation splits to facilitate standard machine learning workflows.

|**Split**|**Number of Instances**|**Notes**|
|---|---|---|
|**train**|28,000|Used for model training and weight optimization.|
|**validation**|7,000|Used for hyperparameter tuning and intermediate model evaluation.|

## 💾 Dataset Structure

### Data Instances

A single data instance consists of an image file and two distinct labels detailing its source and authenticity.

|**Field Name**|**Example Value**|**Description**|
|---|---|---|
|**image**|`<PIL.Image.Image object>`|The actual image content loaded into a PIL object.|
|**label**|`1`|Binary label for authenticity (Real vs. AI-Generated).|
|**generator**|`4`|Multi-class label for the specific generation model (or Real).|

### Data Fields

The dataset contains the following fields:

|**Field Name**|**Data Type**|**Description**|
|---|---|---|
|**image**|`datasets.Image()`|The actual image content (e.g., .jpg, .png).|
|**label**|`datasets.ClassLabel`|Task A: Binary label for image veracity.|
|**generator**|`datasets.ClassLabel`|Task B: Label specifying the generation source/model.|

## 🏷️ Label Definitions

The two label fields use the following strict mappings:

**`label` (Binary Veracity Classification)**

|**Label**|**Value**|**Description**|
|---|---|---|
|**real**|`0`|Image is a real photograph/non-AI generated.|
|**fake**|`1`|Image was created by an AI generation model.|

**`generator` (Model Source Identification)**

|**Label**|**Value**|**Description**|
|---|---|---|
|**Real**|`0`|Real image (no AI generation involved).|
|**ADM**|`1`|Generated by Ablated Diffusion Model (Guided Diffusion).|
|**BigGAN**|`2`|Generated by BigGAN.|
|**GLIDE**|`3`|Generated by GLIDE.|
|**Midjourney**|`4`|Generated by Midjourney.|
|**SD14**|`5`|Generated by Stable Diffusion 1.4.|
|**SD15**|`6`|Generated by Stable Diffusion 1.5.|
|**VQDM**|`7`|Generated by Vector Quantized Diffusion Model.|
|**Wukong**|`8`|Generated by the Wukong diffusion model.|

## 🔗 Sources

- **Original dataset:** [yangsangtai/tiny-genimage (Kaggle)](https://www.kaggle.com/datasets/yangsangtai/tiny-genimage)