This is an easy to use framework for federated learning along with a react ui for the same.
-
Install pytorch, torchvision for cpu or gpu as required
-
Run
pip install -r requirements.txtto install the common requirements -
To install necessary files for react UI:
- Install NodeJs.
cd react-appnpm install
-
Use command
npm startto start the UI. Head to localhost:3000 to view the UI -
Change server_config.yaml to suit your needs
-
Have a copy of the client folder at each client and change client_config.yaml for each separate client,
-
Make sure to mention the dataset paths,labels, etc
-
Start the server by running
python run_new_server.py -
To start a client, cd to the client directory and run
python run_new_client.pyto start a new client