Comments (14)
Thank you very much for your reply. The bug has been fixed. Besides, I am very curious about how you reproduced the structure of the hypernetwork mentioned in the pFedLA article you mentioned, as the original text does not provide specific details. I think you are very talented!
请问您是怎么解决的呀?我改了版本也一直出现这个问题,能具体说一下么?
from fl-bench.
The version of code you running is the latest? If not, pull the latest and try again. In my environment, the server/fedavg.py
can be finished without bug.
from fl-bench.
Thank you very much for your reply. The bug has been fixed. Besides, I am very curious about how you reproduced the structure of the hypernetwork mentioned in the pFedLA article you mentioned, as the original text does not provide specific details. I think you are very talented!
from fl-bench.
Thanks for your recognition first. You are right that the detail of model structure is not clear. About the shape of hypernetwork, the rough structure is shown in the appendix of pFedLA paper. But the actual parameters of pFedLA are guessed.
Actually, I used to doubt that should I segment the neural network in the chunk way (each chunk includes a conv, bn, relu, pool and one
The chunk way would bring the more complicated model structure to this bench, which is hard for generalization and I don't want that.
So in this bench, I reproduce it using the layer way.
However, In my another repo pFedLA, I reproduce the pFedLA in the chunk way. If you are more interest in that way, go check it.😏
from fl-bench.
Your work is excellent! Thank you very much. When I tried to run fedavg.py and pfedla.py using the "easy" method, I encountered the following issues. I am not sure if it's due to my torch version.
from fl-bench.
Can you show me the command you run the code? In my Ubuntu 22.04 workstation, there is no problem.
Python: 3.9.13
PyTorch: 1.13.1
Torchvision: 0.14.1
from fl-bench.
from fl-bench.
然后我在ubuntu上也试了一下同样的问题,所以我怀疑是不是版本的问题
from fl-bench.
我没有在低版本的 pytorch 上进行过代码测试,所以感觉应该是版本问题。如果你那边方便配置环境,可以 anaconda 配一个高版本的 pytorch 来运行我的代码。
from fl-bench.
如果还是出现这种错误,可以试试把函数中参数的类型提醒去除
e.g.
def clone_params(src: Union[OrderedDict[str, torch.Tensor], torch.nn.Module])
-> def clone_params(src)
from fl-bench.
好的谢谢,我还有问题想问您,就是他论文中提到那个中间参数是由什么构成的呢,就是服务器中用于产生各个客户机local模型参数。公式5:客户机模型参数=所有客户机中间参数*当前客户机的alpha(聚合矩阵)。这个所有客户机的中间参数是所有客户机本地训练模型产生的梯度的聚合嘛,还是各个客户端的单个梯度呢
from fl-bench.
pFedLA 中 server 会负责保存所有的 client model parameters,而 e.g. torch.stack()
之后的形态。其厚度跟
from fl-bench.
Hi, @zingjk.
如果遇到环境问题,或许可以尝试一下用 poetry 来构建虚拟环境。用 poetry 能够保证你安装的所有依赖都与我的一样,确保不会出现版本问题。
关于如何使用 poetry 来构建环境,README 有简单的教程。
from fl-bench.
Hi, @zingjk.
如果遇到环境问题,或许可以尝试一下用 poetry 来构建虚拟环境。用 poetry 能够保证你安装的所有依赖都与我的一样,确保不会出现版本问题。
关于如何使用 poetry 来构建环境,README 有简单的教程。
我这就去试试,十分感谢!
from fl-bench.
Related Issues (20)
- please can somebody helps me to solve this problem HOT 5
- COPY failed: forbidden path outside the build context: ../ () HOT 3
- Changing "finetune_epoch" doesn't affect test accuracies. HOT 4
- problem run pre-treatment HOT 7
- [Implementation Error] algorithm "ccvr" code lost a "()" HOT 5
- Are u considering to add the FedMix algo in the repository? HOT 2
- There is no VALIDATION set for FEMNIST LEAF - help wanted HOT 8
- FL-bench welcomes PRs
- Hi, thanks for your contributions to the FL community, you are extremely a talented person
- Elastic aggregation and Non-iid data by using dirichlet distribution scenario HOT 5
- 我想把大佬你复现的pfedla的cnnwithbn迁移进这个model中,该如何迁移呢? HOT 7
- why after fine tunning accuracy shows 0% ?? HOT 10
- server aggregation about BN layers HOT 5
- pfedla with high cpu occupy and low gpu occupy HOT 4
- 关于新客户端微调问题 HOT 4
- a bug in “pfedhn” HOT 1
- prototype_loss in fedproto seems to be 0 all the time HOT 2
- Division by zero on cfl.py HOT 1
- inference in fedproto
- OSError: [WinError 123] The filename, directory name, or volumelabel syntax is incorrect(文件名、目录名或卷标语法不正确) HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fl-bench.