Paulescu / adversarial-machine-learning

Hands-on tutorial on adversarial examples 😈. With Streamlit app ❀️.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Hands-on tutorial on adversarial examples 😈. With Streamlit app ❀️.


Languages

Language:Jupyter Notebook 99.4%Language:Python 0.6%