This is the official repository of Semantically Adversarial Learnable Filters.
Example of results
| Original Image | Adversarial Image | Original Image | Adversarial Image | Original Image | Adversarial Image |
|---|---|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
| macaw | Irish setter | crane | mower | Irish terrier | orang |
-
Create conda virtual-environment
module load python3/anaconda conda create --name FilterFool python=3.6.8 -
Activate conda environment
conda activate FilterFool -
Extract the tar file
tar -zxvf https://github.com/AliShahin/FilterFool.git -
Go to the working directory
cd FilterFool_code -
Install requirements (please make sure your GPU is enabled)
pip install -r requirements.txt
-
In the script.sh set the desired filter among "Nonlinear_detail", "Gamma" or "Log"
-
Generate the FilterFool adversarial image
bash script.sh -
The FilterFool adversarial image and log file are stored in the Results_{filter} (within the root directory) with the same name as their corresponding original images
If you use our code, please cite the following paper:
@article{shamsabadi2021filterfool,
title = {Semantically Adversarial Learnable Filters},
author = {Shamsabadi, Ali Shahin and Oh, Changjae and Cavallaro, Andrea},
journal={arXiv preprint arXiv:2008.06069},
year = {2021}
}
The content of this project itself is licensed under the Creative Commons Non-Commercial (CC BY-NC).





