Closed mle-els closed 3 years ago
The argmax call might need axis=1 to select the largest logit per example:
argmax
axis=1
secondlargest = np.argmax((logits.double() * secondlargest_mask).cpu().detach().numpy())
https://github.com/DSE-MSU/DeepRobust/blob/master/deeprobust/image/attack/cw.py#L209
Thank you for kindly show us the potential bug, I have updated the file.
The
argmax
call might needaxis=1
to select the largest logit per example:https://github.com/DSE-MSU/DeepRobust/blob/master/deeprobust/image/attack/cw.py#L209