Skip to content

Adversarial example generation by FGSM: different normalization of training vs test images? #1032

Closed
@hookxs

Description

@hookxs

In the Adversarial example generation tutorial the classifier from https://github.com/pytorch/examples/tree/master/mnist is used. However, this classifier is trained with input normalization transforms.Normalize((0.1307,), (0.3081,)) while in the FGSM tutorial no normalization is used and the perturbed images are clamped to [0,1] - is this not a contradiction?

Metadata

Metadata

Assignees

Labels

Adversarial TrainingIssues relating to the adversarial example generation tutorialdocathon-h1-2023A label for the docathon in H1 2023medium

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions