Giter Club home page Giter Club logo

poster's Introduction

fliot

Setup

  1. Clone this repo

  2. Create a new folder with the name datasets

  3. Download the dataset for experiments from here, then extract it to the datasets folder

    The workspace structure must be like this:

    .
    ├── datasets
    │   ├── CIFAR10-64-IID
    │   │   ├── clients
    │   │   │   ├── c0
    │   │   │   │   ├── fit
    │   │   │   │   │   ├── 0
    │   │   │   │   │   ├── 1
    │   │   │   │   │   ├── .
    │   │   │   │   │   └── 9
    │   │   │   │   └── evaluate
    │   │   │   │       ├── 0
    │   │   │   │       ├── 1
    │   │   │   │       ├── .
    │   │   │   │       └── 9
    │   │   │   ├── ...
    │   │   │   └── c63
    │   │   └── test
    │   │       ├── 0
    │   │       ├── 1
    │   │       ├── .
    │   │       └── 9
    │   └── CIFAR10-64-IID.zip
    └── fliot
        ├── README.md
        └── source
            ├── data.py
            ├── engines.py
            ├── libs.py
            ├── partition.py
            ├── main
            │   ├── client.py
            │   └── server.py
            ├── models
            │   └── cnn.py
            └── strategies.py
  4. Pull docker images from docker hub

  • For Raspberry Pi devices:
    • docker pull lhkhiem28/rpi:2.2
  • For Jetson devices:
    • docker pull lhkhiem28/jetson:2.2.2
  1. Run docker images and execute into containers

Quickstart

On the server:
cd fliot/source/main
python3 server.py --dataset="CIFAR10-64-IID" --num_classes=10 --num_clients=8 --wandb_project=""

On the client i:
cd fliot/source/main
python3 client.py --dataset="CIFAR10-64-IID" --num_classes=10 --wandb_project="" --client_id=i

Other arguments that can be can change when needed:
--server_address:IP address of the server, --server_port:Opened port on the server
--num_rounds:Number of communication rounds

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.