Giter VIP home page Giter VIP logo

adversarialcnnvisualizations's Introduction

Visualizing Adversarial Input in CNN

Open Source Code

PyTorch CNN Visualization Library - This is the base library we extended to visualize adversarial inputs. We used roughly 1k lines of this code written in Python, which mainly using the PyTorch library.

PyTorch pretrained AlexNet, VGG16, and ResNet50 - These are the pretrained models we used as a basis for our visualizations.

Datasets

ImageNet - An image database containing millions of images labeled as one of 1000 classes.

File Descriptions

The src directory contains all the source and executable code for this project. GradientSaliency.ipynb, LayerwiseRelevance.ipynb, LayerCAM.ipynb, ScoreCAM.ipynb, and SmoothGrad.ipynb are the files which included the modified library code used to produce each respective visualization.

AdversarialAccuracy.ipynb contains the code used for assessing the model's ability to handle increasingly perturbed images.

adv_generation_inverted_image.ipynb contains the code used for generating adversarial images, and producing inverted image visualizations.

img_diff_checker.ipynb contains some exploratory code relating to analyzing absolute differences in image pixel values to understand where perturbations tend to be added.

Performance Measuring Tools - Analysis

[Final report slides]

adversarialcnnvisualizations's People

Contributors

sohumgala avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.