Closed Freed-Wu closed 1 year ago
https://github.com/Harry24k/adversarial-attacks-pytorch/blob/master/torchattacks/attack.py#L68
self.model_name = str(model).split("(")[0]
is same as
self.model_name = model.__class__.__name__
Thank you for your advice! I fixed it : https://github.com/Harry24k/adversarial-attacks-pytorch/commit/fdb62912ce3bd19f3139e0277b5b3d27c8cdeea8
https://github.com/Harry24k/adversarial-attacks-pytorch/blob/master/torchattacks/attack.py#L68
is same as