Federated-Learning-PyTorch icon indicating copy to clipboard operation
Federated-Learning-PyTorch copied to clipboard

Implementation of Communication-Efficient Learning of Deep Networks from Decentralized Data

Results 31 Federated-Learning-PyTorch issues
Sort by recently updated
recently updated
newest added

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

![微信截图_20220607111935](https://user-images.githubusercontent.com/52699164/172288600-9309464e-f27c-4e01-82d9-bf8bb3f10028.png) 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...

![image](https://user-images.githubusercontent.com/60006565/117239281-13ab8280-ae61-11eb-982b-594957cfa2aa.png)

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).