TinfoilHat0 / Defending-Against-Backdoors-with-Robust-Learning-Rate

The code of AAAI-21 paper titled "Defending against Backdoors in Federated Learning with Robust Learning Rate".
https://ojs.aaai.org/index.php/AAAI/article/view/17118
MIT License
30 stars 24 forks source link

about setup #3

Closed b856741 closed 2 years ago

b856741 commented 2 years ago

hi,when I tried to run python federated.py --data=fmnist --local_ep=2 --bs=256 --num_agents=10 --rounds=200 there is a problem show up err do you have any ideas about it ?

TinfoilHat0 commented 2 years ago

Hi,

It looks like this error occurs due to tensorboard. Can you try commenting out tensorboard stuff, and try again? If it works, I'd guess the error is due to some tensorboard version conflict between tensorflow and pytorch.

b856741 commented 2 years ago

Thanks a lot for replying. I don't know if I commented the correct line Try1 but after I commented this line, there's a new problem showed up. try1err

TinfoilHat0 commented 2 years ago

You’ve to comment out all summarywriter events, not just the import.

b856741 commented 2 years ago

Hi,I tried to comment all summarywriter ,and writer,but it seems "writer" is a necessary part. do you have else ideas? Thanks try2 try2err

TinfoilHat0 commented 2 years ago

Just try setting writer=None, and comment out wherever writer is used maybe? The other solution is to simply solve the version conflict. You can try creating another environment without tensorflow, and just install pytorch and its version of tensorboard.

TinfoilHat0 commented 2 years ago

Closing as this is a package conflict