next
This commit is contained in:
1 parent
68646dc4b1
commit
a0252d594c
1 file changed
+1
-1
+1
-1
@@ -613,7 +613,7 @@ class Solver(object):
|
||||
with torch.no_grad():
|
||||
gen_noattack, gen_noattack_feats = self.G(x_real, c_trg)
|
||||
# Attack
|
||||
x_adv, perturb = pgd_attack.perturb(x_real, x_real, c_trg)
|
||||
x_adv, perturb = pgd_attack.perturb(x_real, gen_noattack, c_trg)
|
||||
# x_adv = x_real + perturb
|
||||
# x_adv = self.blur_tensor(x_adv)
|
||||
|
||||
|
||||
Reference in new issue
Block a user