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

Resnet50 for Imagenet #20

Open
atrah22 opened this issue Mar 10, 2020 · 3 comments
Open

Resnet50 for Imagenet #20

atrah22 opened this issue Mar 10, 2020 · 3 comments

Comments

@atrah22
Copy link

atrah22 commented Mar 10, 2020

Hello,

I am getting an error on mismatched Batch normalization layer when pruning resnet50 for imagenet dataset.

Could you please provide Resnet50 model definition and how it is used for imagenet dataset pruning?

@youzhonghui
Copy link
Owner

Probably because some filters that did not work during the observe process were cut out by mistake. The easiest solution is to increase OBSERVE_TIMES in prune/universal.py line 13.

The definition of resnet50 is in models/imagenet/resnet50.py.

Our code to prune resnet50 can be download from here -> resnet50.zip. But due to the change of code base, the code may require some modifications to run. We also provide the output of the GBN-50 experiment.

@atrah22
Copy link
Author

atrah22 commented Mar 17, 2020

Thankyou

@atrah22
Copy link
Author

atrah22 commented Mar 17, 2020

Hello,
In your attached code, the pretrained resnet50 model is not loaded. And if it is loaded (I modified) then there is missing keys.
How did you load the pretrained resnet50 model. Didn't see any part where the pretrained model is loaded.

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