We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3776d66 commit 7cc6fe6Copy full SHA for 7cc6fe6
examples/adversarial_training_data_augmentation.py
@@ -64,7 +64,7 @@ def build_model(input_shape=(32, 32, 3), nb_classes=10):
64
classifier = KerasClassifier(build_model(), clip_values=(0, 1), use_logits=False)
65
66
# Create attack for adversarial trainer; here, we use 2 attacks, both crafting adv examples on the target model
67
-pgd = ProjectedGradientDescent(classifier, eps=8, eps_step=2, max_iter=10, num_random_init=20)
+pgd = ProjectedGradientDescent(classifier, eps=8 / 255, eps_step=2 / 255, max_iter=10, num_random_init=1)
68
69
# Create some adversarial samples for evaluation
70
x_test_pgd = pgd.generate(x_test)
0 commit comments