SSA
SSA copied to clipboard
about gt and Truelabel
it seems that "gt=img_obj['TrueLabel'] - 1"
But why use gt in "attack.py" to generate adversarial examples but use gt+1 in "verify.py" to get accuracy?
attack.py
loss = F.cross_entropy(output_v3, gt)
verify.py
sum += (model(images)[0].argmax(1) != (gt+1)).detach().sum().cpu()