-
Notifications
You must be signed in to change notification settings - Fork 95
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
model size after finetuning #1
Comments
I meet the same problem as yours, and I solved it by clearing the pycache, and I hope it will help you~ |
I can get this, the pruned model size is 9.3M which is not 2.2M? @angelamin @kaishijeng is it same as your model? |
emmm, after I run 'python main.py -sr --s 0.0001', my checkpoint.pth.tar is 153M... |
And it didn't save model_best.pth.tar... |
I check it, because of pytorch0.4, after test,type(prec1) is Tensor, so change it to type int. |
@MrLinNing Hello, I only change dataset's path to own Cifar10, how do you save so small model? Thanks for your help. |
Parameters are 20M, so model size should be (20x1000000x32)/(1024x1024x8)=76.29M |
@RichardMrLu : how did you run the script with version 0.4? Can you share your changes? |
@Coderx7
def save_checkpoint(state, is_best, filename='checkpoint.pth.tar'): best_prec1 = 0. |
@RichardMrLu My original model is 160M . Why our models such big with only 20M parameters? |
@foolwood
I noticed model size after finetuning is the same as the original model size.
Shouldn't the size be the same as the pruned model?
Thanks,
The text was updated successfully, but these errors were encountered: