Federated-Learning-PyTorch
Federated-Learning-PyTorch copied to clipboard
Implementation of Communication-Efficient Learning of Deep Networks from Decentralized Data
Hi, I want to try the model on the new dataset, which py files will i need to change? (utils.py and ?)
raise ValueError("batch_size should be a positive integer value, " ValueError: batch_size should be a positive integer value, but got batch_size=0
 the code should be the change to the place marked in the red box
While running the code, the following attribute errors were coming. Can anyone tell the reasons for such errors?? **For equal case:** ``` Traceback (most recent call last): File "src/federated_main.py", line...
Hello: I ran 'python src/federated_main.py --model=cnn --dataset=mnist --iid=0 --epochs=10 --gpu=1' But keep receiving error message: Traceback (most recent call last): File "src/federated_main.py", line 34, in if args.gpu_id: AttributeError: 'Namespace' object...
1. I wonder why can I run "federated_main.py" on only one GPU (stand alone deployment). Because I got the acc.png and loss.png, so I believed that I do run this...

bug
In this for loop, are we looping over all users? The current code seems to be fixed for all users. https://github.com/AshwinRJ/Federated-Learning-PyTorch/blob/1bffc34c3511daea3bf63e60eceb7572b5fb9ee3/src/federated_main.py#L105
https://github.com/AshwinRJ/Federated-Learning-PyTorch/blob/235b8f0ab161825694ee73874295d773b0d3f23f/src/federated_main.py#L105 Here, I think we have to replace the idx with _c_ because we want to calculate the Training error of the global_model on all training data (after the averaging).