Closed Freed-Wu closed 1 year ago
Thank you.
It seems that the following default value of target_map_function is the problem: https://github.com/Harry24k/adversarial-attacks-pytorch/blob/2810a4088f661cc2af3ada0775d35f271c4e04f8/torchattacks/attack.py#L60
The default value is deleted.
By default,
self._target_map_function
is None, so this is a bug:Can be fixed by: