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

Accuracy of the pruned model #17

Open
zhoudaquan opened this issue Jul 17, 2019 · 5 comments
Open

Accuracy of the pruned model #17

zhoudaquan opened this issue Jul 17, 2019 · 5 comments

Comments

@zhoudaquan
Copy link

Hi,

I have followed the code here and run the sparse training code as below:

python main.py --arch vgg11_bn --s 0.00001 --save [PATH TO SAVE RESULTS] [IMAGENET]

After the training, the accuracy is 71.4% which is fine. However, The pruning results is almost 0 with the 0.5 pruning ratio. As I decrease the pruning ratio to be 0.2, the top 1 accuracy increase to 15% which also far below the expectation. Could you please advice this is normal or there could be something wrong?

I would like a one time pruning and do not want to prune iterative.

Thanks for your reply.

Best regards,

@Eric-mingjie
Copy link
Owner

Eric-mingjie commented Jul 17, 2019

Are you training on ImageNet? You could finetune the model after pruning.

@zhoudaquan
Copy link
Author

Are you training on ImageNet? You could finetune the model after pruning.

Hi,

Thanks for the fast response.

Yeah... I am training on ImageNet dataset. I just plot the bn scaling factor from the sparsely trained model and I found the resulting values is not sparse actually...

Is this normal or there could be something wrong?

Thanks for the advice.

@zhoudaquan
Copy link
Author

Are you training on ImageNet? You could finetune the model after pruning.

yeah... I could fine tune the model. I am new to model pruning and I have no idea regarding the performance. Is this normal practice? Is the performance dropping too much for the first round pruning?

@Eric-mingjie
Copy link
Owner

Eric-mingjie commented Jul 17, 2019

I am not exactly sure of the performance of the pruned model. One reason for the low accuracy could be that the sparsity loss factor 0.00001 is small. You can try increasing it.

@zhoudaquan
Copy link
Author

I am not exactly sure of the performance of the pruned model. One reason for the low accuracy could be that the sparsity loss factor 0.00001 is small. You can try increasing it.

Thanks for the reply.

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