Skip to content

sarosijbose/RobustFreqCNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RobustFreqCNN

About

This repository contains the [PyTorch] implementation of the paper "Towards Frequency-Based Explanation for Robust CNN" arxiv. It primarly deals the extent to which image features are robust in the frequency domain.

Demo

Open In Colab

Steps

  1. It is recommended to setup a fresh virtual environment first.
python -m venv env
source activate env/bin/activate
  1. Install the torchattacks package
pip install torchattacks
  1. Run the main.py file.

The original paper implemented the attacks using a VGG 19 model. However, due to memory constraints I did it using ResNet 18. Here I have provided a fine-tuned (on CIFAR 10) version of ResNet 18 which is pre-trained on ImageNet. The checkpoint can be downloaded using this link.

RCT Maps

CW FGSM PGD

Disclaimer

This is not an official implementation of the paper. I am not associated with the authors of the paper or Lab in any manner whatsoever and I don't claim credit for any of the algorithms proposed in the paper.

About

This repository contains the [PyTorch] implementation of the paper: "Towards Frequency-Based Explanation for Robust CNN"

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages