yishiliu/Ivy-Fake
IVY-FAKE: Unified Explainable Benchmark and Detector for AIGC Content This repository provides the official implementation of IVY-FAKE and IVY-xDETECTOR, a unified explainable framework and benchmark for detecting AI-generated content (AIGC) across both images and videos. π Overview IVY-FAKE is the first large-scale dataset designed for multimodal explainable AIGC detection. It contains: 150K+ training samples (images + videos) 18.7K evaluation samplesβ¦ See the full description on the dataset page: https://huggingface.co/datasets/yishiliu/Ivy-Fake.
IVY-FAKE: Unified Explainable Benchmark and Detector for AIGC Content
   
This repository provides the official implementation of IVY-FAKE and IVY-xDETECTOR, a unified explainable framework and benchmark for detecting AI-generated content (AIGC) across both images and videos.
π Overview
IVY-FAKE is the first large-scale dataset designed for multimodal explainable AIGC detection. It contains:
- 150K+ training samples (images + videos)
- 18.7K evaluation samples
- Fine-grained annotations including:
- Spatial and temporal artifact analysis
- Natural language reasoning (<think>...</think>)
- Binary labels with explanations (<conclusion>real/fake</conclusion>)
IVY-xDETECTOR is a vision-language detection model trained to:
- Identify synthetic artifacts in images and videos
- Generate step-by-step reasoning
- Achieve SOTA performance across multiple benchmarks
π¦ Evaluation
conda create -n ivy-detect python=3.10
conda activate ivy-detect
# Install dependencies
pip install -r requirements.txtπ Evaluation Script
We provide an evaluation script to test large language model (LLM) performance on reasoning-based AIGC detection.
π Environment Variables
Before running, export the following environment variables:
export OPENAI_API_KEY="your-api-key"
export OPENAI_BASE_URL="https://api.openai.com/v1" # or OpenAI's default base URLβΆοΈ Run Evaluation
python eva_scripts.py \
--eva_model_name gpt-4o-mini \
--res_json_path ./error_item.jsonThis script compares model predictions (<conclusion>real/fake</conclusion>) to the ground truth and logs mismatches to error_item.json.
π§ͺ Input Format
The evaluation script res_json_path accepts a JSON array (Dict in List) where each item has:
{
"rel_path": "relative/path/to/file.mp4",
"label": "real or fake",
"raw_ground_truth": "<think>...</think><conclusion>fake</conclusion>",
"infer_result": "<think>...</think><conclusion>real</conclusion>"
}- label: ground truth
- rawgroundtruth: reasoning by gemini2.5 pro
- infer_result: model reasoning and prediction
Example file: ./evaluate_scripts/error_item.json
