Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enkiwang/imperceptible-fake-face-antiforensic
Perception Matters: Exploring Imperceptible and Transferable Anti-forensics for GAN-generated Fake Face Imagery Detection
https://github.com/enkiwang/imperceptible-fake-face-antiforensic
Last synced: 6 days ago
JSON representation
Perception Matters: Exploring Imperceptible and Transferable Anti-forensics for GAN-generated Fake Face Imagery Detection
- Host: GitHub
- URL: https://github.com/enkiwang/imperceptible-fake-face-antiforensic
- Owner: enkiwang
- Created: 2020-06-28T04:59:43.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-23T14:36:23.000Z (almost 2 years ago)
- Last Synced: 2023-07-30T14:21:15.528Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 3.39 MB
- Stars: 8
- Watchers: 2
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## An Imperceptible Anti-forensic Method, Models and Dataset
**Perception matters: exploring imperceptible and transferable anti-forensics for GAN-generated fake face imagery detection**
This repository contains the code, models and dataset for the project "Perception matters: exploring imperceptible and transferable anti-forensics for GAN-generated fake face imagery detection".
## Implementation
This code has been tested on Ubuntu 16.04 system, with following pre-requisites.### Pre-requisites
1. python >=3.6.10
2. PyTorch >=0.4.1
3. torchvision >=0.2.1
4. Pillow >=5.4.1### Dataset
The face dataset we used is an image subset dataset downloaded from [here](https://github.com/NVlabs/stylegan).If you agree with the license in [here](https://github.com/NVlabs/stylegan/blob/master/LICENSE.txt), you might be permitted to download the downsampled image subset from [here](https://drive.google.com/file/d/1tudf3eFtlPtn5eX7BWW1IxjXtfIgreyH/view?usp=sharing).
This face image subset consists of 40,000 real face images and 40,000 fake face images with image resolution as 128x128. For real or fake face images, the dataset splits are: 30,000 images are used for model training; 5,000 images for validation; and the rest 5,000 for test.After downloading the dataset, please unzip and put them in the data directory.
### Models
The pretrained deep learning-based fake face forensic models can be downloaded [here](https://drive.google.com/file/d/1Me6i2xKHbMdh7I-JS7ZJ1QN-6e-SBeov/view?usp=sharing). After downloading pretrained models, please uncompress and put them in the checkPoint directory.### Run attacks
```bash
cd attacks
bash ./run_attack.sh
```If you find our code useful in your research, please consider citing our work:
```bib
@article{wang2021perception,
title={Perception matters: Exploring imperceptible and transferable anti-forensics for GAN-generated fake face imagery detection},
author={Wang, Yongwei and Ding, Xin and Yang, Yixin and Ding, Li and Ward, Rabab and Wang, Z Jane},
journal={Pattern Recognition Letters},
volume={146},
pages={15--22},
year={2021},
publisher={Elsevier}
}
```