Open f414158949 opened 1 year ago
Please try to run the new script, "train_multi_lcfed.py"
thanks for fixing the code. I run the new script "train_multi_lcfed.py" and set args.hc = 1. There is also a bug during evaluation
[Test] epoch 0 testing Site 1 [2022-11-21 14:52:53,718]
Traceback (most recent call last):
File "scripts/train_multi_lcfed.py", line 271, in
And could you kindly please share the log.txt or args for training? I think it will be helpful for us to obtain reproducing results for 3 datasets in paper
sorry for the bugs. I was trying to make the resources clearer after the eccv submission and modified many functions. But I'm so busy these days and thus, this repo seems confusing and some bugs occurred. I will fix the bugs and update the repo as soon as possible.
ok, I will be waiting for the update😊
sorry for so long time delay. please see train_hc.py.
Sincere thanks for sharing the training codes!
when I set args.hc = 1, there is an error:
Traceback (most recent call last): File "scripts/train_lcfed.py", line 223, in
pred, x5, hmap = net_current(volume_batch, client_idx, 1, seg_heads)
File "/home/anaconda3/envs/torch11/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl
return forward_call(*input, kwargs)
File "/home/FedLC-main/scripts/../networks/lcrepnet.py", line 243, in forward
o = self.forward_for_train(x, site_index, stage, seg_heads)
File "/home/FedLC-main/scripts/../networks/lcrepnet.py", line 236, in forward_for_train o = self.hc(uncertainty.detach(), preds.detach(), fea.detach()) File "/home/anaconda3/envs/torch11/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl return forward_call(*input, *kwargs)
File "/home/FedLC-main/scripts/../networks/lcrepnet.py", line 30, in forward fea2 = self.soft(uncertainty[:, c].unsqueeze(1), fea) + fea File "/home/anaconda3/envs/torch11/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1110, in _call_impl return forward_call(input, kwargs) TypeError: forward() takes 2 positional arguments but 3 were given