YQYCherry commited on
Commit
ead91f9
Β·
verified Β·
1 Parent(s): 230e6cb

Upload 9 files

Browse files
README.md CHANGED
@@ -1,3 +1,127 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ ---
3
+ license: apache-2.0
4
+ tags:
5
+ - adversarial-attack
6
+ - ai-generated-image-stealth
7
+ - deepfake-evasion
8
+ - pytorch
9
+ ---
10
+
11
+ <a id="top"></a>
12
+ <div align="center">
13
+ <h1>πŸ•΅οΈβ€β™‚οΈ ERASE: Bypassing Collaborative Detection of AI Counterfeit (Model Weights)</h1>
14
+
15
+ <p>
16
+ <b>Qianyun Yang</b><sup>1</sup>&nbsp;
17
+ <b>Peizhuo Lv</b><sup>2</sup>&nbsp;
18
+ <b>Yingjiu Li</b><sup>3</sup>&nbsp;
19
+ <b>Shengzhi Zhang</b><sup>4</sup>&nbsp;
20
+ <b>Yuxuan Chen</b><sup>1</sup>&nbsp;
21
+ <b>Zixu Li</b><sup>1</sup>&nbsp;
22
+ <b>Yupeng Hu</b><sup>1</sup>
23
+ </p>
24
+
25
+ <p>
26
+ <sup>1</sup>Shandong University&nbsp;
27
+ <sup>2</sup>Nanyang Technological University&nbsp;
28
+ <sup>3</sup>University of Oregon&nbsp;&nbsp
29
+ <sup>4</sup>Boston University
30
+ </p>
31
+ </div>
32
+ These are the official pre-trained model weights for **ERASE**, an optimization framework designed to bypass single and collaborative detection of AI-Generated Images (AIGI) by comprehensively eliminating multi-dimensional generative artifacts.
33
+
34
+ πŸ”— **Paper:** [Accepted by IEEE TDSC 2026] (Coming Soon)
35
+ πŸ”— **GitHub Repository:** [iLearn-Lab/TDSC26-ERASE](https://github.com/iLearn-Lab/TDSC26-ERASE)
36
+
37
+ ---
38
+
39
+ ## πŸ“Œ Model Information
40
+
41
+ ### 1. Model Name
42
+ **ERASE** (comprehensive counterfeit ArtifactS Elimination) Checkpoints.
43
+
44
+ ### 2. Task Type & Applicable Tasks
45
+ - **Task Type:** Adversarial Attack / AI-Generated Image Stealth (AIGI-S) / Image-to-Image
46
+ - **Applicable Tasks:** Bypassing AI-generated image detectors (both single detectors and collaborative multi-detector environments) while maintaining exceptionally high visual fidelity.
47
+
48
+ ### 3. Project Introduction
49
+ With the rapid development of generative AI, the issue of deepfakes has become increasingly severe. Existing AI-Generated Image Stealth (AIGI-S) methods typically optimize against a single detector and often fail when facing real-world "Collaborative Detection". Moreover, they often introduce obvious artifacts visible to human observers.
50
+
51
+ **ERASE** is a stealth optimization framework that innovatively combines:
52
+ - 🎯 **Sensitive Feature Attack**
53
+ - ⛓️ **Diffusion Chain Attack** (Optimization-free)
54
+ - πŸ“» **Decoupled Frequency Domain Processing**
55
+
56
+ This Hugging Face repository hosts the pre-trained weights required to run the Decoupled Frequency Domain Processing and the Surrogate Classifiers, specifically `noise_prototype_VAE.pt`, `dncnn_color_blind.pth`, and the `ckpt_ori` surrogate weights.
57
+
58
+ ### 4. Training Data Source
59
+ The surrogate classifiers and related components were primarily trained and evaluated on the **[GenImage](https://github.com/GenImage-Dataset/GenImage)** dataset, following the standard task settings of AIGI-S evaluation.
60
+
61
+ ---
62
+
63
+ ## πŸš€ Usage & Basic Inference
64
+
65
+ These weights are designed to be used seamlessly out-of-the-box with the official ERASE GitHub repository.
66
+
67
+ ### Step 1: Prepare the Environment
68
+ Clone the GitHub repository and install dependencies:
69
+ ```bash
70
+ git clone https://github.com/iLearn-Lab/TDSC26-ERASE
71
+ cd ERASE
72
+ conda create -n erase python=3.9 -y
73
+ conda activate erase
74
+ pip install -r requirements.txt
75
+ ```
76
+
77
+ ### Step 2: Download Model Weights
78
+ Download the files from this Hugging Face repository (`ckpt_ori` folder, `noise_prototype_VAE.pt`, `dncnn_color_blind.pth`) and place them in the `checkpoints/` directory of your cloned GitHub repo. Your structure should look like this:
79
+ ```text
80
+ ERASE/
81
+ └── checkpoints/
82
+ β”œβ”€β”€ ckpt_ori/ # Surrogate model weights (E/R/D/S)
83
+ β”œβ”€β”€ noise_prototype_VAE.pt # Frequency VAE weights
84
+ └── dncnn_color_blind.pth # Denoising/Frequency weights
85
+ ```
86
+
87
+ ### Step 3: Run the Attack
88
+ Use `main.py` from the code repository to perform basic inference and generate adversarial images:
89
+ ```bash
90
+ python main.py \
91
+ --images_root ./input_images \
92
+ --save_dir ./output \
93
+ --model_name E,R,D,S \
94
+ --diffusion_steps 20 \
95
+ --start_step 18 \
96
+ --iterations 10 \
97
+ --is_encoder 1 \
98
+ --encoder_weights ./checkpoints/noise_prototype_VAE.pt \
99
+ --eps 4 \
100
+ --batch_size 4 \
101
+ --device cuda:0
102
+ ```
103
+
104
+ ---
105
+
106
+ ## ⚠️ Limitations & Notes
107
+
108
+ **Disclaimer:** This tool and its associated model weights are strictly intended for **academic research, AI security evaluation, and robustness testing**.
109
+
110
+ - It is strictly **prohibited** to use this repository for any malicious forgery, fraud, or other illegal/unethical purposes.
111
+ - Users bear full legal responsibility for any consequences arising from improper use.
112
+
113
+ ---
114
+
115
+ ## πŸ“β­οΈ Citation
116
+
117
+ If you find our weights or code useful for your research, please consider leaving a **Star** ⭐️ on our GitHub repo and citing our paper:
118
+
119
+ ```bibtex
120
+ @article{yang2026erase,
121
+ title={ERASE: Bypassing Collaborative Detection of AI Counterfeit via Comprehensive Artifacts Elimination},
122
+ author={Yang, Qianyun and Lv, Peizhuo and Li, Yingjiu and Zhang, Shengzhi and Chen, Yuxuan and Chen, Zhiwei and Li, Zixu and Hu, Yupeng},
123
+ journal={IEEE Transactions on Dependable and Secure Computing},
124
+ year={2026},
125
+ publisher={IEEE}
126
+ }
127
+ ```
ckpt_ori/Controlvae.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3b51b0a63b7e6ad7c687d2d3f09300bdabce2b5e29b7991d3c8ca830fe59495
3
+ size 153809053
ckpt_ori/deit.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:022df4c37288fb1553ddd76ca8097b20ac5e7670bda20982792c308aee0af4a8
3
+ size 1029776705
ckpt_ori/efficientnet-b0.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1aaa7f97deb2cc13a20c9c6c6628fbe04a794319ce2ea02438738eb69b4207a9
3
+ size 48584630
ckpt_ori/resnet50.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b154169983ff92980d05e5374dd107d2e9c9fee32264d23afbf5daa6372fb7a
3
+ size 282574075
ckpt_ori/swin-t.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e50469ee6d9fbf9e19fbc0d8fd2829f83c062cb78ca4ede82bba7056fabaf456
3
+ size 1042919826
ckpt_ori/swin_base_patch4_window7_224_22kto1k.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5348473e69277d69db915362bef760b5fd04362057bd59c7fe064d431532eab
3
+ size 352792251
dncnn_color_blind.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfe11a6b703304df82cdf236f431fc6492766c7b9119d97e943edeb392c710a3
3
+ size 2678121
noise_prototype_VAE.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a664c55fcac4a8905c69677dd5348a2d6838b393c3bb0101e812b1caa1a3fde
3
+ size 602895