Generative Adversarial Examples: Working with Classifier

Practice generating adversarial examples and breaking some models using cats vs. dogs dataset.

Let's try generating adversarial examples with GANs and break some models.

Preparing an ensemble classifier for Kaggle’s cats vs. dogs

⚠️ The dataset is intended only for non-commercial research and educational use.

To make our demonstration more similar to practical scenarios, we will train a decent model on Kaggle’s cats vs. dogs datasethttps://www.kaggle.com/c/dogs-vs-cats, then break the model with adversarial examples generated by GAN. This dataset contains 25,000 training images and 12,500 testing images of either dogs or cats. Here, we will only use the 25,000 training images in our experiment.

For convenience, after downloading the dataset, put images of cats and dogs in separate folders so that the file structure looks like this:

Get hands-on with 1400+ tech skills courses.