From b0c3723d115af85e9fe673f137a5bac7d8bcf569 Mon Sep 17 00:00:00 2001 From: Nataniel Ruiz Date: Thu, 9 Jan 2020 12:08:54 -0400 Subject: [PATCH] GANimation conditional attacks --- ganimation/solver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ganimation/solver.py b/ganimation/solver.py index 0a5c0c3..bbd5eda 100644 --- a/ganimation/solver.py +++ b/ganimation/solver.py @@ -420,7 +420,7 @@ class Solver(Utils): # img = regular_image_transform(Image.open(images_to_animate_path[idx])).unsqueeze(0).cuda() # Wrong Class - x_adv, perturb = pgd_attack.perturb(image_to_animate, black, targets[0, :].unsqueeze(0).cuda() + x_adv, perturb = pgd_attack.perturb(image_to_animate, black, targets[0, :].unsqueeze(0).cuda()) # Joint Class Conditional # x_adv, perturb = pgd_attack.perturb_joint_class(image_to_animate, black, targets[:, :].cuda())