auto-attack icon indicating copy to clipboard operation
auto-attack copied to clipboard

N_classes in targeted attacks

Open MaxHeuillet opened this issue 10 months ago • 1 comments

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?

MaxHeuillet avatar Feb 27 '25 15:02 MaxHeuillet

您好,您的邮件已收到!

ScarlettChan avatar Feb 27 '25 15:02 ScarlettChan