Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BackdoorAttack class has no argument for source_class #158

Open
TDteach opened this issue Aug 10, 2022 · 1 comment
Open

BackdoorAttack class has no argument for source_class #158

TDteach opened this issue Aug 10, 2022 · 1 comment

Comments

@TDteach
Copy link

TDteach commented Aug 10, 2022

In the init funciton of BackdoorAttack class, source_class is a input parameter.
However, in the add_argument function of BackdoorAttack class, there is no argument for source_class.
Also, when typping --help in the command line, there is no source_class argument prompted.
Thus, there is no way to setup the source_class through command line.

@TDteach
Copy link
Author

TDteach commented Aug 10, 2022

add the following code to add_argument function of BackdoorAttack class may be a good choice.

group.add_argument('--source_class', type=int, nargs='+',
                           help='source class(es) of backdoor '
                           '(default: 1)')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant