Browse Source

update examples/community/face_adversarial_attack/adversarial_attack.py.

Signed-off-by: 君君臣臣君 <mingjun@isrc.iscas.ac.cn>
pull/426/head
君君臣臣君 Gitee 2 years ago
parent
commit
824675c05e
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 3 deletions
  1. +1
    -3
      examples/community/face_adversarial_attack/adversarial_attack.py

+ 1
- 3
examples/community/face_adversarial_attack/adversarial_attack.py View File

@@ -41,7 +41,6 @@ class FaceAdversarialAttack(object):
input_img (numpy.ndarray): The input image.
target_img (numpy.ndarray): The target image.
seed (int): optional Sets custom seed for reproducability. Default is generated randomly.

"""

if (seed is not None): np.random.seed(seed)
@@ -76,10 +75,9 @@ class FaceAdversarialAttack(object):
Args:
attack_method (Sting) : Including target attack and non-target attack.

Returns:
Returns:
Tensor, adversarial image.
Tensor, mask image.

"""

if attack_method == "non-target attack":


Loading…
Cancel
Save