Dataset Viewer
Duplicate
The dataset viewer is not available for this split.
Cannot load the dataset split (in streaming mode) to extract the first rows.
Error code:   StreamingRowsError
Exception:    ValueError
Message:      Invalid string class label train
Traceback:    Traceback (most recent call last):
                File "/src/services/worker/src/worker/utils.py", line 151, in get_rows_or_raise
                  return get_rows(
                      dataset=dataset,
                  ...<4 lines>...
                      column_names=column_names,
                  )
                File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
                  return func(*args, **kwargs)
                File "/src/services/worker/src/worker/utils.py", line 131, in get_rows
                  rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
                File "/src/services/worker/src/worker/utils.py", line 574, in safe_iter
                  yield from ds.decode(False) if ds.features else ds
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
                  for key, example in ex_iterable:
                                      ^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2591, in __iter__
                  example = _apply_feature_types_on_example(
                      example, self.features, token_per_repo_id=self.token_per_repo_id
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2508, in _apply_feature_types_on_example
                  encoded_example = features.encode_example(example)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 2252, in encode_example
                  return encode_nested_example(self, example)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1526, in encode_nested_example
                  {k: encode_nested_example(schema[k], obj.get(k), level=level + 1) for k in schema}
                      ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1549, in encode_nested_example
                  return schema.encode_example(obj) if obj is not None else None
                         ~~~~~~~~~~~~~~~~~~~~~^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1210, in encode_example
                  example_data = self.str2int(example_data)
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1147, in str2int
                  output = [self._strval2int(value) for value in values]
                            ~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1168, in _strval2int
                  raise ValueError(f"Invalid string class label {value}")
              ValueError: Invalid string class label train

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.


Is Artificial Intelligence Generated Image Detection a Solved Problem?

Ziqiang Li1, Jiazhen Yan1, Ziwen He1, Kai Zeng2, Weiwei Jiang1, Lizhi Xiong1, Zhangjie Fu1‑

‑Corresponding author

1Nanjing University of Information Science and Technology 2University of Siena

Paper | GitHub Repository

This repository is the official dataset of the AIGIBench.

AIGIBench dataset contains two types of training and 25 test subsets. This dataset has the following advantages:

  • Comprehensive generate types: including GAN-based Noise-to-Image Generation, Diffusion for Text-to-Image Generation, GANs for Deepfake, Diffusion for Personalized Generation, and Open-source Platforms.
  • State-of-the-art Generators: MidjourneyV6, Stable Diffusion 3, Imagen, DALLE3, InstantID, FaceSwap, StyleGAN-XL and so on.
  • Completely unknown generation method: Crawl pictures from communities and social media to build datasets CommunityAI & SocialRF, making detection more challenging.

image/png

If this project helps you, please fork, watch, and give a star to this repository.

πŸ“šDataset

Each folder contains compressed files. After unzip the file, files under the data root directory can be organized as follows.

Train

AIGIBench introduces two training dataset settings: (i) Setting-I: Training on 144K images generated by ProGAN across four object categoriesβ€”car, cat, chair, and horse. (ii) Setting-II: Training on 144K images generated by both SD-v1.4 and ProGAN, covering the same four object categories. The data of ProGAN comes from ForenSynths, and the data of sdv1.4 comes from GenImage. In order to maintain the fairness of the training data, we randomly select the sdv1.4 training images of GenImage to keep the same number as ProGAN, and then merge the data. The file directory is as follows:

β”œβ”€β”€ train
β”‚   β”œβ”€β”€ car
β”‚   β”‚   β”œβ”€β”€ 0_real
β”‚   β”‚   β”œβ”€β”€ 1_fake
β”‚   β”œβ”€β”€ cat
β”‚   β”‚   β”œβ”€β”€ ...
β”‚   β”œβ”€β”€ chair
β”‚   β”‚   β”œβ”€β”€ ...
β”‚   β”œβ”€β”€ horse
β”‚   β”‚   β”œβ”€β”€ ...
β”‚   β”œβ”€β”€ sdv1.4
β”‚   β”‚   β”œβ”€β”€ 0_real
β”‚   β”‚   β”œβ”€β”€ 1_fake
β”œβ”€β”€ val
β”‚   β”œβ”€β”€ ...
β”‚   β”‚   β”œβ”€β”€ 0_real
β”‚   β”‚   β”œβ”€β”€ 1_fake
β”‚   β”‚   ...

Test

AIGIBench comprehensively tests the performance of the detector and builds a test dataset from five perspectives: GAN-based Noise-to-Image Generation, Diffusion for Text-to-Image Generation, GANs for Deepfake, Diffusion for Personalized Generation, and Open-source Platforms. The file directory is as follows:

β”œβ”€β”€ test
β”‚   β”œβ”€β”€ ProGAN
β”‚   β”‚   β”œβ”€β”€ 0_real
β”‚   β”‚   β”œβ”€β”€ 1_fake
β”‚   β”œβ”€β”€ R3GAN
β”‚   β”‚   β”œβ”€β”€ ...
β”‚   β”‚   ...
β”‚   β”œβ”€β”€ BlendFace
β”‚   β”‚   β”œβ”€β”€ 0_real
β”‚   β”‚   β”œβ”€β”€ 1_fake
β”‚   β”œβ”€β”€ InSwap
β”‚   β”‚   β”œβ”€β”€ ...
β”‚   β”‚   ...
β”‚   β”œβ”€β”€ FLUX1-dev
β”‚   β”‚   β”œβ”€β”€ 0_real
β”‚   β”‚   β”œβ”€β”€ 1_fake
β”‚   β”œβ”€β”€ Midjourney-V6
β”‚   β”‚   β”œβ”€β”€ ...
β”‚   β”‚   ...
β”‚   β”œβ”€β”€ BLIP
β”‚   β”‚   β”œβ”€β”€ 0_real
β”‚   β”‚   β”œβ”€β”€ 1_fake
β”‚   β”œβ”€β”€ Infinite-ID
β”‚   β”‚   β”œβ”€β”€ ...
β”‚   β”‚   ...
β”‚   β”œβ”€β”€ CommunityAI
β”‚   β”‚   β”œβ”€β”€ 0_real
β”‚   β”‚   β”œβ”€β”€ 1_fake
β”‚   β”œβ”€β”€ SocialRF
β”‚   β”‚   β”œβ”€β”€ ...

Citation

@inproceedings{li2025artificial,
  title={Is Artificial Intelligence Generated Image Detection a Solved Problem?},
  author={Li, Ziqiang and Yan, Jiazhen and He, Ziwen and Zeng, Kai and Jiang, Weiwei and Xiong, Lizhi and Fu, Zhangjie},
  booktitle={Advances in Neural Information Processing Systems},
  year={2025}
}

Contact

If you have any question about this project, please feel free to contact 247918horizon@gmail.com

Downloads last month
29

Paper for Ghanshyam2634/AIGIBench