Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

ResNet-50-train-val-gesl.prototxt #9

Open
newwhitecheng opened this issue Jun 30, 2017 · 6 comments
Open

ResNet-50-train-val-gesl.prototxt #9

newwhitecheng opened this issue Jun 30, 2017 · 6 comments

Comments

@newwhitecheng
Copy link

Hi,
Can you provide models/resnet/ResNet-50-train-val-gesl.prototxt?

@jspark1105
Copy link
Contributor

Oops! I forgot to add those files. Thanks for pointing out. Now the necessary files to reproduce resnet-50 pruning results should be there. Please let me know if you encounter other issues.

@newwhitecheng
Copy link
Author

newwhitecheng commented Jul 13, 2017

I'm wondering why the sparse network has the same size as original one. Which are both 102Mb?
have you ever try to sparsify and compress model?
And When I test the speed on GPU, their speed performance are similar.
Thanks!

@jspark1105
Copy link
Contributor

Hi, good question. Even if pruned model has lots of zeros we didn't take advantage of that when storing to files. This is because our main goal was reducing inference time, so the model stored in memory during inference is small. If model size stored in disk (or transferring over network) is important, we need to change the code to store the model in a different format taking advantage of the zeros. I'm not that familiar with hdf5 and so on, so I'd need some help here.

@jspark1105
Copy link
Contributor

Regarding speed up in GPU, I didn't optimize for GPU inference speed using the sparsity. In Xeon and Xeon Phi, you should be able to see speedups.

@newwhitecheng
Copy link
Author

Thank you for you reply. Another question which is not related to this thread. Is it possible to use it on ARM cpu?

@jspark1105
Copy link
Contributor

Technically, yes. ARM also should be able to take advantage of sparsity to speed up inference but you'd need to implement an optimized sparse convolution similar to the one for x86 in sconv.hpp .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants