Datasets:
Dataset Viewer
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 CAS3120-2026-Project1_AI-Generated-Image-Detection@63ed49d5ff84beb700f7daf09f498e82fb1d8535
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 149, 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 272, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, 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 544, 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 3052, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2572, 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 2489, 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 2244, in encode_example
return encode_nested_example(self, example)
File "/usr/local/lib/python3.14/site-packages/datasets/features/features.py", line 1518, 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 1541, 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 CAS3120-2026-Project1_AI-Generated-Image-Detection@63ed49d5ff84beb700f7daf09f498e82fb1d8535Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
Project 1 — AI-Generated Image Detection
Course materials for CAS3120 · Introduction to Machine Learning · Spring 2026, Department of AI, Yonsei University.
Task
Binary image classification: distinguish real images from AI-generated images.
Dataset Summary
- Image size: 128 × 128 RGB PNG
- Splits:
train: 2,000 images (labeled)val: 1,000 images (labeled)test: 2,000 images (labels withheld)
- Class balance: 50/50 in each labeled split
Test labels are withheld. Final evaluation is done through a Kaggle competition.
File Structure
processed/
├── train/
│ ├── 0_real/00000.png ~
│ └── 1_fake/00000.png ~
├── val/
│ ├── 0_real/00000.png ~
│ └── 1_fake/00000.png ~
└── test/
└── images/00000.png ~ 01999.png
- train/val: Labels encoded in folder names (
0_real= label 0,1_fake= label 1). - test: Single
images/folder with shuffled IDs. No labels provided.
Usage
from huggingface_hub import hf_hub_download
import zipfile
zip_path = hf_hub_download(
repo_id="yonsei-dli/CAS3120-2026-Project1_AI-Generated-Image-Detection",
filename="processed.zip",
repo_type="dataset",
)
with zipfile.ZipFile(zip_path) as z:
z.extractall("/content/")
DATA_DIR = "/content/processed"
Submission Format
Predict on the test set and submit a CSV to the course Kaggle competition.
id,score
0,0.8234
1,0.1456
...
idmatches the test image filename (00000.png→ id 0).scoreis a real number; higher means more likely AI-generated.- AUC is computed directly from the scores; no thresholding required.
License
Released under CC BY-NC 4.0 for academic and educational use within the course. Redistribution outside coursework is not permitted.
Contact
Course teaching assistants:
- Donguk Kwon — donguk.kwon@yonsei.ac.kr
- DeogYong Kim — legenduck@yonsei.ac.kr
- Downloads last month
- 40