leekwoon commited on
Commit
5782339
·
verified ·
1 Parent(s): 620941f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +128 -0
README.md ADDED
@@ -0,0 +1,128 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # CleanFD Backup
2
+
3
+ **CleanFD** is a comprehensive modularized library for benchmarking AI-generated image detection methods. This backup includes the complete project with all detectors, datasets, pretrained models, and evaluation scripts.
4
+
5
+ ## Download & Extract
6
+
7
+ ```bash
8
+ # huggingface_hub 설치 (필요시)
9
+ pip install huggingface_hub
10
+
11
+ # 다운로드
12
+ huggingface-cli download leekwoon/260204_cfd_backup --repo-type dataset --local-dir ./cfd_backup
13
+
14
+ # 무결성 확인 (선택사항)
15
+ cd cleanfd_backup
16
+ md5sum -c checksums.md5
17
+
18
+ # 파일 합치기 및 압축 해제
19
+ cat data.tar.gz.part_* | tar -xzvf -
20
+ ```
21
+
22
+ ## Directory Structure
23
+
24
+ ```
25
+ cleanfd/
26
+ ├── cleanfd/ # Core library modules
27
+ │ ├── detector/ # Detector implementations (23 detectors)
28
+ │ ├── dataset/ # Dataset utilities
29
+ │ ├── nn_classifier/ # Neural network modules
30
+ │ └── utils/ # Utilities
31
+ ├── configs/ # Hydra configuration files (23 configs)
32
+ ├── data/ # Dataset directory
33
+ │ ├── train/ # Training data (real + fake)
34
+ │ ├── val/ # Validation data
35
+ │ ├── test/ # Test data
36
+ │ └── test_processed/ # Processed test data (JPEG, WebP, resize)
37
+ ├── pretrained/ # Pretrained model weights
38
+ ├── pipelines/ # Training/evaluation pipelines
39
+ ├── FerretNet/ # FerretNet implementation
40
+ ├── icml26_paper/ # ICML 2026 paper materials
41
+ ├── notebooks/ # Jupyter notebooks
42
+ ├── results/ # Experiment results
43
+ ├── scripts/ # Utility scripts
44
+ └── requirements.txt # Python dependencies
45
+ ```
46
+
47
+ ## Supported Detectors (23 methods)
48
+
49
+ ### Frequency/Reconstruction-based
50
+ - **DRCT**: Dual-Residual ConvNeXt Transformer
51
+ - **RINE**: Reconstruction-based detection
52
+ - **SAFE**: Spectral Analysis for Fake Evidence
53
+ - **Aeroblade**: Aerospace-inspired detector
54
+
55
+ ### Gradient-based
56
+ - **Corvi / Corvi+ / Corvi Mask Gated / Corvi Inpaint**
57
+ - **Rajan / Rajan+ / Rajan Mask Gated / Rajan Inpaint**
58
+
59
+ ### CLIP-based
60
+ - **AIDE**: CLIP-based detector
61
+ - **C2P-CLIP**: Contrastive-to-Positive CLIP
62
+ - **CLIPDet**: CLIP-based detection
63
+ - **UFD**: Universal Fake Detector
64
+
65
+ ### Novel Methods
66
+ - **FerretNet**: Feature-extraction based detector
67
+ - **CoDE**: Code-based detector
68
+ - **LaDeDa**: Latent-based detector
69
+ - **BFree**: Boundary-free detector
70
+ - **DDA**: Domain Discriminative Attention
71
+ - **NPR**: Neural Pattern Recognition
72
+ - **WarpAD**: Warping-based Anomaly Detection
73
+
74
+ ## Dataset Information
75
+
76
+ ### Training Data
77
+ - **Real Images**: COCO, LSUN
78
+ - **Fake Images**:
79
+ - Aligned inversions (Rajan method)
80
+ - Latent Diffusion Model (LDM) generations
81
+ - Stable Diffusion v2.1 inpainted images
82
+ - LSUN inpainted images
83
+
84
+ ### Test Data
85
+ - **Real Images**: RedCaps dataset
86
+ - **Fake Images** (12 generators):
87
+ - Stable Diffusion (SD)
88
+ - Midjourney
89
+ - Kandinsky
90
+ - Playground
91
+ - PixelArt
92
+ - LCM
93
+ - Flux
94
+ - Wuerstchen
95
+ - Amused
96
+ - Chameleon
97
+ - Loki
98
+ - WildRF
99
+
100
+ ### Data Processing
101
+ - **test**: Original test images
102
+ - **test_processed**: Images with perturbations (JPEG, WebP, resize)
103
+
104
+ ## Key Features
105
+
106
+ - **Unified Interface**: Consistent API for all detectors
107
+ - **Hydra Configuration**: Flexible experiment management
108
+ - **Comprehensive Evaluation**: Multiple metrics (AP, ACC)
109
+ - **Perturbation Testing**: Robustness evaluation with various image processing
110
+ - **Modular Design**: Easy to add new detectors and datasets
111
+ - **Reproducible**: Configuration-based experiments
112
+
113
+ ## Usage Example
114
+
115
+ ```bash
116
+ # Train a detector
117
+ python pipelines/corvi.py
118
+
119
+ # Evaluate on test set
120
+ python scripts/eval.py --method corvi --test_dir test
121
+
122
+ # Analyze results
123
+ python scripts/analyze_results.py --methods corvi rajan --test_dirs test test_processed
124
+ ```
125
+
126
+ ## Citation
127
+
128
+ This library aggregates multiple AI-generated image detection methods for research purposes. Please cite the original papers when using specific detectors.