auto-attack
auto-attack copied to clipboard
N_classes in targeted attacks
Hello,
I am running autoattack on the kvasir-dataset, this dataset has 8 classes, and I get the following warning:
Warning: it seems that more target classes (9) than possible (7) are used in APGD-T! Also, it seems that too many target classes (9) are used in FAB-T (7 possible)!
In the set_version the argument n_target_classes is set to 9 for Linf and L2 but set to 5 for L1 for APGD targeted and to 9 for FAB. Do you think it would be more correct to just set these dynamically based on the number of classes in the dataset?
您好,您的邮件已收到!