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

error when pruning mobilenet #5

Open
zhaoxin111 opened this issue Aug 9, 2022 · 5 comments
Open

error when pruning mobilenet #5

zhaoxin111 opened this issue Aug 9, 2022 · 5 comments

Comments

@zhaoxin111
Copy link

zhaoxin111 commented Aug 9, 2022

Firstly, thanks for your excellect job!
I had tried to prune the mobilenet, it contains many DWConv.
To support DWConv pruning, I make little changes
image
Otherwise, the following error will be reported
image

When finetuning the pruned model, there was error about the DWConv.
image

image

@Ben-Louis
Copy link
Owner

Thank you very much! Would you like to open a PR to fix this bug?

@zhaoxin111
Copy link
Author

Thank you very much! Would you like to open a PR to fix this bug?

Maybe you misunderstood me, I haven't fixed the problem mentioned in the picture, do you have any suggestions?

@zhaoxin111
Copy link
Author

I found that the group convolution in a certain module is not divided into the same group as the subsequent convolution
1660033165544
1660033177597

@zhaoxin111
Copy link
Author

zhaoxin111 commented Aug 10, 2022

In method make_groups, delete the beak in the loop and merge the groups like
image

image

After the above modifications, the problem seems to be fixed

@dukeconv
Copy link

any updates ?
regarding getting error as
KeyError: Conv2d(64, 256, kernel_size=(1, 1), stride=(1, 1), bias=False)

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

3 participants