Skip to content

Chandan-M-N/federated_learning

Repository files navigation

Poetry

Install poetry

sudo apt install python3-poetry
poetry install
poetry shell

Poetry will install all your dependencies in a newly created virtual environment. To verify that everything works correctly, you can run the following command:

poetry run python3 -c "import flwr"

If you don't see any errors, you're good to go!

pip

Write the command below in your terminal to install the dependencies according to the configuration file requirements.txt.

pip install -r requirements.txt

To verify that everything works correctly, you can run the following command:

python3 -c "import flwr"

If you don't see any errors, you're good to go!

Run Federated Learning with TensorFlow/Keras with Flower

Afterward, you are ready to start the Flower server as well as the clients. You can simply start the server in a terminal as follows:

./dev/server.sh

Now you are ready to start the clients. We have prepared a simple script called client.sh, which accepts a CLIENT_ID and can be executed as in:

# Shell 1
./dev/client.sh 1
# Shell 2
./dev/client.sh 2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages