Skip to content

bayesianinstitute/Real_Time_FL

Repository files navigation

Installation

Virtual Environment

  1. Create a virtual environment Run the following command to create a virtual environment named "env" (you can replace "env" with your preferred name):
python -m venv env
  1. Activate the Virtual Environment: To activate the virtual environment, run:
source env/bin/activate
  1. Install Packages and Run Your Project: After activating the virtual environment, you can install packages and run your project as usual:
pip install -r requirements.txt
chmod +x run_server.sh
.\run_server.sh
  1. Deactivate the Virtual Environment: When you're done working in the virtual environment, you can deactivate it using the following command:
deactivate

The virtual environment will be deactivated, and you'll return to the regular Command Prompt.

Running

Server

Steps

  1. Change Directory
FL_System/server
  1. Check your system ip address and replace the host address in the config_app.py
HOST = ''
  1. Run
bash server.py

Client

Steps

  1. Change Directory
FL_System/client
  1. Put the same host address that put on server side in the config_app.py
HOST = ''
  1. Run
python3 Worker1.py

Note: Repeat the same process for other client as well

About

Real time Federated Learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •