Open EthanChu7 opened 1 month ago
Hi @EthanChu7 , good question, this bug already fix by this pull https://github.com/Harry24k/adversarial-attacks-pytorch/pull/168, but itβs has not been merged into the main line yet. πππ
thx for the reply, i m satisfied with the modifications in pull #168, looking forward to see them in the main branch.
β¨ Short description of the bug [tl;dr]
Bugs in the f function of cw.py when facing negative logits
π¬ Detailed code and results
In f function of cw.py, the real and other are computed by
Howerver, when facing negative logits(negative other label logits in other and negative target label in real), the other and real become zero.
I suggest to make the following modifications: