-
Notifications
You must be signed in to change notification settings - Fork 214
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
how Pruning the last conv layer affects the first linear layer of the classifier #36
Comments
It changed the input dimension of the first fc layer.
The input weights of classifier does not change with the last conv layer. |
nn.Conv2d(512, 512, 3, padding=1), is changed to nn.Conv2d(450, 412, 3, padding=1) class VGGOWN(nn.Module):
thanks |
Should be |
when I load the pretrained state-dict it has already (25088, 4096) weights in linear layer how can I know which one should be prun? |
Please try to understand |
I trained the vgg and saved the model as pth file. then I load it for pruning some filters of it.
the last conv after pruning is not 512 anymore, some filters are gone.
how Pruning the last conv layer affects the first linear layer of the classifier which is (512 7 7, 4096).
how can I prune the input weights of classifier according to the last conv layer.
The text was updated successfully, but these errors were encountered: