From 11c0cb2b03b22754d72a3467512b8fec305e88b6 Mon Sep 17 00:00:00 2001 From: Nataniel Ruiz Date: Thu, 9 Jan 2020 17:12:28 -0400 Subject: [PATCH] GANimation conditional attacks --- ganimation/solver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ganimation/solver.py b/ganimation/solver.py index cdbd54f..37ab391 100644 --- a/ganimation/solver.py +++ b/ganimation/solver.py @@ -436,9 +436,9 @@ class Solver(Utils): # Normal Attack # x_adv, perturb = pgd_attack.perturb(image_to_animate, black, targets_au) - x_adv, perturb = x_advs[target_idx] + # x_adv, perturb = x_advs[target_idx] - # x_adv = image_to_animate + perturb + x_adv = image_to_animate + perturb # No Attack # x_adv = image_to_animate