Leon022 / EVE

Evil vs Evil: Using Adversarial Examples to Against Backdoor Attack in Federated Learning
3 stars 0 forks source link

Given command not working #1

Open urwithajit9 opened 2 years ago

urwithajit9 commented 2 years ago

Hi Leon,

Thank you for sharing. I was trying reproduce the result but the following execution (given along with the code base)

$python main.py --dataset mnist --model lenet5 --num_users 20 --epoch 50 --iid False --attack_start 4 --attack_methods "CBA" --attacker_list [2,5,7,9] --aggregation_methods "EVE" --detection_size 50 --gpu 0

Throws following error

main.py: error: argument --attacker_list: invalid int value: '[2,5,7,9]'

Leon022 commented 2 years ago

Hi Ajit Kumar,

At 2022-07-08 10:15:05, "Ajit Kumar" @.***> wrote:

Hi Leon,

Thank you for sharing. I was trying reproduce the result but the following execution (given along with the code base)

$python main.py --dataset mnist --model lenet5 --num_users 20 --epoch 50 --iid False --attack_start 4 --attack_methods "CBA" --attacker_list [2,5,7,9] --aggregation_methods "EVE" --detection_size 50 --gpu 0

Throws following error

main.py: error: argument --attacker_list: invalid int value: '[2,5,7,9]'

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Leon022 commented 2 years ago

Hi Ajit Kumar,

Glad to receive your question

In the 'attacker_list' of argparse, the input defined is an int variable, so the correct input should be 2 5 7 9, not [2,5,7,9].

I have made changes in GitHub. I hope you can update the code and re execute the following command:

$python main.py --dataset mnist --model lenet5 --num_users 20 --epoch 50 --iid False --attack_start 4 --attack_methods CBA --attacker_list 2 5 7 9 --aggregation_methods EVE --detection_size 50 --gpu 0

At 2022-07-08 10:15:05, "Ajit Kumar" @.***> wrote:

Hi Leon,

Thank you for sharing. I was trying reproduce the result but the following execution (given along with the code base)

$python main.py --dataset mnist --model lenet5 --num_users 20 --epoch 50 --iid False --attack_start 4 --attack_methods "CBA" --attacker_list [2,5,7,9] --aggregation_methods "EVE" --detection_size 50 --gpu 0

Throws following error

main.py: error: argument --attacker_list: invalid int value: '[2,5,7,9]'

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>