TensorFlow 2.0 Computer Vision Cookbook by Jesus Martinez

TensorFlow 2.0 Computer Vision Cookbook by Jesus Martinez

Author:Jesus Martinez [Jesus Martinez]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2021-02-25T16:00:00+00:00


Implementing an adversarial attack using the Fast Gradient Signed Method

We often think of highly accurate deep neural networks as robust models, but the Fast Gradient Signed Method (FGSM), proposed by no other than the father of GANs himself, Ian Goodfellow, showed otherwise. In this recipe, we'll perform an FGSM attack on a pre-trained model to see how, by introducing seemingly imperceptible changes, we can completely fool a network.

Getting ready

Let's install OpenCV with pip.

We'll use it to save the perturbed images using the FGSM method:

$> pip install opencv-contrib-python

Let's begin.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.