Skip to content

N_classes in targeted attacks #110

@MaxHeuillet

Description

@MaxHeuillet

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions