Giter Site home page Giter Site logo

dynafed's Introduction

DYNAFED: Tackling Client Data Heterogeneity with Global Dynamics

Main Figure

This repository contains the source code for the paper DYNAFED: Tackling Client Data Heterogeneity with Global Dynamics. Our paper is accepted by CVPR2023 and is available on arXiv: link.

Table of Contents

Installation

To use this project, you will need to install the following packages:

  • PyTorch: pip install torch
  • wandb: pip install wandb
  • scikit-learn: pip install scikit-learn

Reproducing Results

To reproduce the results from our paper, follow these steps:

  1. Download the datasets (fmnist, cifar, cinic10).
  2. Train the model by running the following commands:
# cifar10 experiments
bash experiments/cifar10/cifar10_0.01_serverdistill.sh
# cifar100 experiments
bash experiments/cifar100/cifar100_0.01_serverdistill.sh
# cinic10 experiments
bash experiments/cinic10/cinic10_0.01_serverdistill.sh

Example Results

Results 1 Results 2

Credits

We would like to give credit to the following repositories for their code and resources that we used in our project:

Citation

If you use our code or data in your research, please cite our paper. You can use the following BibTeX entry:

@article{pi2022dynafed,
  title={DYNAFED: Tackling Client Data Heterogeneity with Global Dynamics},
  author={Pi, Renjie and Zhang, Weizhong and Xie, Yueqi and Gao, Jiahui and Wang, Xiaoyu and Kim, Sunghun and Chen, Qifeng},
  journal={arXiv preprint arXiv:2211.10878},
  year={2022}
}

dynafed's People

Contributors

pipilurj avatar

Stargazers

 avatar  avatar ZhiWei Li avatar HenryTujia avatar  avatar sparky avatar  avatar JiayiChen815 avatar Sina Nabavi avatar Frank Wang avatar  avatar Qifeng Chen avatar Emir Ceyani avatar  avatar Federico Brunner avatar JQ Liu avatar Yunhao Gou avatar Runjian Chen (陈润健) avatar Peidong Liu(刘沛东) avatar  avatar Liu Jiashuo avatar rpan avatar CH3OH avatar  avatar Cynthia Chen avatar  avatar Wu Haoyu avatar Lu Guansong avatar Li Gengyu avatar Weizhong Zhang avatar Zhifeng Jiang avatar  avatar yestin long avatar  avatar Zhili LIU avatar Marcus Yang avatar  avatar Rui avatar Xiaoyu Wang avatar Jipeng Zhang avatar shizhediao avatar  avatar Jiahui Gao avatar  avatar Sandalots avatar 爱可可-爱生活 avatar MiZhenxing avatar Hanrong Ye avatar Chenyang QI avatar Yueqi Xie avatar Fa-Ting Hong avatar

Watchers

Pyjcsx avatar  avatar

dynafed's Issues

跑cifar10,异构程度0.01的脚本,我跑出来的实验结果有点奇怪

你好,首先很感谢你能开源Dynafed的源码,Dynafed是一篇很有意思且值得再深入研究的论文,根据全局模型参数轨迹生成仿真数据,这的idea很棒。
因此我把Dynafed当作基线实验,但是我本人复现不出来论文里的实验效果,想知道是不是哪个参数设置错误导致的,我通过运行experiments/cifar10/cifar10_0.01_serverdistill.sh这个脚本,最后得到的精度是在56到58之间,但论文里的精度是在65左右,是这个脚本哪个参数设置错了吗,您能帮忙看一下吗

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.