Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running FedMA with simple cnn #12

Open
amosy3 opened this issue Nov 7, 2021 · 1 comment
Open

Running FedMA with simple cnn #12

amosy3 opened this issue Nov 7, 2021 · 1 comment

Comments

@amosy3
Copy link

amosy3 commented Nov 7, 2021

Hi,
Very good job! I love your method.
I tried to run FedMA using the "simple-cnn" model, but there is a miss-match in the size of matched_cnn (which is bigger than the original model) and the weights after alignment.

The error is:
File "../main.py", line 97, in trans_next_conv_layer_backward
reshaped = layer_weight.reshape(reconstructed_next_layer_shape).transpose(1, 0, 2, 3).reshape(next_layer_shape[0], -1)
ValueError: cannot reshape array of size 3750 into shape (15,25,5,5)

@Anubhav3084
Copy link

this error is because they are using the global model size for initializing local models. I tried to change that in my local machine but that created some other errors down the line. Did you solve this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants