iamsiddharthdas / Visual-Cryptography-and-Defense-against-adversial-attacks.

This project deals with an interactive webtool that lets anyone to explore adversarial attacks by dynamically updating the classification scores and Class Activation Map (CAM) heatmap visualization of an input image as one tunes the strength of perturbation applied to generate the adversarial example, all rendered in real-time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project deals with an interactive webtool that lets anyone to explore adversarial attacks by dynamically updating the classification scores and Class Activation Map (CAM) heatmap visualization of an input image as one tunes the strength of perturbation (epsilon in Fast Gradient Sign Method) applied to generate the adversarial example, all rendered in real-time. Our image classification architecture uses gradient calculations for depthwise convolution with respect to the input image. You can now upload your own images and animate the CAM differential with different epsilon multipliers on-demand.

The JavaScript webtool is built with a TensorFlow.js backend and a React frontend referencing open source components.

How to run the program?

Download or clone this repository:

git clone https://github.com/iamsiddharthdas/Visual-Cryptography-Defense-against-adversial-attacks.git

cd into the cloned repo and install the required depedencies:

yarn

To run, type:

yarn start

To Do

  • Input slider to choose from 1000 classes for targeted adversarial attack
  • Port Robust Adversrial Example from IPython notebook
  • Adversarial Training with FGSM
  • Visualize perturbations in real time? i.e. scale the negative values so we have 0 in the middle of the RGB values
  • Explore Saliency Detection implementation (JS) methods

About

This project deals with an interactive webtool that lets anyone to explore adversarial attacks by dynamically updating the classification scores and Class Activation Map (CAM) heatmap visualization of an input image as one tunes the strength of perturbation applied to generate the adversarial example, all rendered in real-time.


Languages

Language:JavaScript 89.0%Language:CSS 8.0%Language:HTML 2.0%Language:TypeScript 1.0%