Harry24k / adversarial-attacks-pytorch

PyTorch implementation of adversarial attacks [torchattacks].
https://adversarial-attacks-pytorch.readthedocs.io/en/latest/index.html
MIT License
1.79k stars 338 forks source link

some error. #80

Closed byerose closed 2 years ago

byerose commented 2 years ago

difgsm.py

Examples::
    >>> attack = torchattacks.DI2FGSM(model, eps=8/255, alpha=2/255, steps=20, decay=0.0, resize_rate=0.9, diversity_prob=0.5, random_start=False)
    >>> adv_images = attack(images, labels)

should be attack = torchattacks.DIFGSM(...)

Harry24k commented 2 years ago

Thank you for your comment!