From 763b4dba5e3847fc645eb1d85c248407a11d2dd4 Mon Sep 17 00:00:00 2001 From: Nataniel Ruiz Date: Thu, 9 Jan 2020 18:14:00 -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 6b1abec..eec1418 100644 --- a/ganimation/solver.py +++ b/ganimation/solver.py @@ -420,13 +420,13 @@ 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()) # Iterative Class Conditional - x_adv, perturb = pgd_attack.perturb_iter_class(image_to_animate, black, targets[:, :].cuda()) + # x_adv, perturb = pgd_attack.perturb_iter_class(image_to_animate, black, targets[:, :].cuda()) # Iterative Data # _, perturb = pgd_attack.perturb_iter_data(image_to_animate, all_images, black, targets[68, :].unsqueeze(0).cuda())