Git Product home page Git Product logo

bmfl's Introduction

BMFL

BM-FL: A Balanced Weight Strategy for Multi-stage Federated Learning Against Multi-client Data Skewing

Requirements

pytorch >= 1.6

torchvision >= 0.9.0

model

BC-GAN

dataset

Dowload MNIST, fashion mnist and cifar10 dataset at the official website. MNIST: download and extract the mnist. Then, place those four ubyte files to .\data\mnist Homepage: http://yann.lecun.com/exdb/mnist/

8-fashion: download and extract the Fashion MNIST. Then, place the place those four ubyte files folder to .\data\8fashion Homepage: https://www.kaggle.com/datasets/zalando-research/fashionmnist/

CIFAR-10: download and extract CIFAR-10 python version. Then, place the thumbnails128x128 folder to .\data\cifar10
For further details:./utils/cifar10npy.py

Usage

python main.py --dataset mnist --num_classes 10 --channels 1 --img_size 28 --w_epochs 4 --train_ep 5 --epoch 500 --num_clients 100 --num_its 5
python main.py --dataset 8fashion --num_classes 8 --channels 1 --img_size 28 --w_epochs 4 --train_ep 5 --epoch 500 --num_clients 100 --num_its 5
python main.py --dataset cifar10 --num_classes 10 --channels 3 --img_size 32 --w_epochs 4 --train_ep 5 --epoch 500 --num_clients 100 --num_its 5

For further details:./utils/config.py

bmfl's People

Contributors

ylxzjy avatar lizheng2018cc avatar

Watchers

 avatar

Forkers

phanducthien82

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.