From e3bf1e8cb5554b91eb78ad183e4a4e457a7eaec2 Mon Sep 17 00:00:00 2001 From: Nataniel Ruiz Date: Wed, 25 Dec 2019 21:16:04 -0400 Subject: [PATCH] next --- cyclegan/util/attacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cyclegan/util/attacks.py b/cyclegan/util/attacks.py index a33cb97..18b90cd 100644 --- a/cyclegan/util/attacks.py +++ b/cyclegan/util/attacks.py @@ -7,7 +7,7 @@ import torch import torch.nn as nn class LinfPGDAttack(object): - def __init__(self, model=None, epsilon=0.05, k=20, a=0.01): + def __init__(self, model=None, epsilon=0.05, k=1, a=0.05): self.model = model self.epsilon = epsilon self.k = k