项目介绍

kt4ngw/fedavg-pytorch 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,目前获得 65 个 Star、5 次 Fork。

仓库全名
kt4ngw/fedavg-pytorch
Star 数
65
Fork 数
5

README 摘要

1 Install Enviornment 1.1 Create and activate conda virtual environment / 创建 和 激活 conda虚拟环境 1.2 install pytorch / 安装pytorch optional: This code requires tensorboardX to be installed in order to run You can also disable tensorboardX Besides, 2025-03-09 The conda environment is exported as environment.yml 2 Quick Start you can enter the code below to run the federated learning demo. Acknowledgement This repository…

完整内容见 GitHub 原始 README 或本页 。

常见问题

fedavg-pytorch 用什么语言开发?

主要使用 Python 编写,目前有 65 个 Star。

如何获取 fedavg-pytorch 的源码?

可以直接克隆仓库:git clone https://github.com/kt4ngw/fedavg-pytorch.git,默认分支为 main;安装与运行步骤见仓库 README。

fedavg-pytorch 最近还在维护吗?

仓库最近一次更新为 2025年4月10日,当前没有未关闭的 Issue;Star 数为 65,可作为社区活跃度的参考。

关于

The implementation of FedAvg based on pytorch.

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
76
价值分
40
活跃状态
活跃

README

1 Install Enviornment

1.1 Create and activate conda virtual environment / 创建 和 激活 conda虚拟环境

conda create --name (env_name) python=3.10 # example: conda create --name fl python=3.10
conda activate (env_name) # example: conda activate fl 

1.2 install pytorch / 安装pytorch

pip3 install torch torchvision torchaudio #  It is recommended to search for the code on the official pytorch website. / 建议官方寻找代码

optional: This code requires tensorboardX to be installed in order to run You can also disable tensorboardX

pip install tensorboardX

Besides,

2025-03-09 The conda environment is exported as environment.yml

2 Quick Start

you can enter the code below to run the federated learning demo.

python main.py

Acknowledgement

This repository needs to thank this paper, i.e, ``Communication-Efficient Learning of Deep Networks from Decentralized Data.‘’.

Some final words

en: If this repository has been helpful to you, could you please give it a star? It would be a great honour, and I would very much appreciate it! You are welcome to fork this repository, but please indicate the source in code or others.

zh: 如果这个仓库对您有所帮助,可以给这个项目点赞吗?这将是我莫大的荣幸,不胜感激!顺便说一句,欢迎您复制这个资源库,但请在代码或其他地方注明来源。

评论

暂无评论