Git Product home page Git Product logo

adversarial-machine-learning's Introduction

Breaking deep learning models with adversarial examples ๐Ÿ˜ˆ

Or maybe it's just that beautiful things are so easily broken by the world.

-- Cassandra Clare, City of Fallen Angels

Table of Contents

  1. What is this repo about?
  2. Quick setup
  3. Fast Gradient Sign method
  4. Adversarial example generator
  5. Let's connect!

What is this repo about?

PyTorch code and streamlit app that demonstrate how easy it is to break deep learning models in computer vision. More precisely, Inception V3.

If you do not know what adversarial examples are go check my blog post.

๐Ÿ“ Adversarial examples to break deep learning models

Also available in Medium and in Hackernoon

Quick setup

Create a virtualenv with your preferred tool (virtualenv, conda, poetry) and activate it.

Then install the code as a local package

$ (venv) pip install .

Fast Gradient Sign method

We use the vanilla fast gradient sign method

And its iterative version.

In the code you can find the "magic" that transforms a nice puppy into a paper towel.

Adversarial example generator

๐Ÿ‘‰ Streamlit app to generate adversarial examples

Let's connect

If you want to learn more about real-world ML topics and become a better data scientist

๐Ÿ‘‰ Subscribe to the datamachines newsletter.

๐Ÿ‘‰๐Ÿฝ Follow me on Twitter and/or LinkedIn

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.