Backdoor example
Hi I couldn't run the backdoor example python federatedscope/main.py --cfg scripts/attack_exp_scripts/backdoor_attack/backdoor_badnet_fedavg_convnet2_on_femnist.yaml
An error has raised
(fs) PS C:\temp\federatedscope> python federatedscope/main.py --cfg scripts/attack_exp_scripts/backdoor_attack/backdoor_badnet_fedavg_convnet2_on_femnist.yaml
Traceback (most recent call last):
File "C:\temp\federatedscope\federatedscope\main.py", line 28, in
Thanks
Duaa
The backdoor attacks are on the branch of backdoor-bench. You can: switch to this branch and re-install federatedscope, and try the example yamls in scripts/backdoor_scripts/attack_config/
Try the following command:
git fetch
git switch backdoor-bench
pip install -e.
pip install opencv-python matplotlib pympler scikit-learn
python federatedscope/main.py --cfg scripts/backdoor_scripts/attack_config/backdoor_fedavg_convnet2_on_cifar10.yaml