next
This commit is contained in:
1 parent
6dbcf6f93b
commit
e941ac9829
1 file changed
+1
-1
+1
-1
@@ -621,7 +621,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, black, c_trg)
|
||||
x_adv, perturb = pgd_attack.perturb(x_real, black, c_trg)
|
||||
# _, perturb = x_advs[idx]
|
||||
x_adv = x_real + perturb
|
||||
# x_adv = self.blur_tensor(x_adv)
|
||||
|
||||
Reference in new issue
Block a user