DeepCompression-caffe icon indicating copy to clipboard operation
DeepCompression-caffe copied to clipboard

剪枝后的模型怎么存成size 小的caffemodel

Open 3DMM-ICME2023 opened this issue 8 years ago • 5 comments

您好, 感谢您的分享!@may0324 我想问您下 剪枝后的模型怎么存成size 小的caffemodel. 可以分享下有关这方面的代码吗,谢谢您!

3DMM-ICME2023 avatar Dec 23 '17 13:12 3DMM-ICME2023

I have the same problem here..don't seem to understand how to transform the current data to the smaller one.n@may0324

A-suozhang avatar Jan 28 '18 13:01 A-suozhang

@liu666666 Hey Bro, I found one Quantization tool which could compress the .caffemodel into the .npz(stored in data, Codebook, labels) at https://github.com/yuanyuanli85/CaffeModelCompression, This solved my problem, probably could solve yours.

A-suozhang avatar Feb 05 '18 02:02 A-suozhang

同问。。。。。。

liujianisme avatar Aug 14 '18 01:08 liujianisme

@A-suozhang thanks

chaipangpang avatar Aug 22 '18 07:08 chaipangpang

@liu666666 Hey Bro, I found one Quantization tool which could compress the .caffemodel into the .npz(stored in data, Codebook, labels) at https://github.com/yuanyuanli85/CaffeModelCompression, This solved my problem, probably could solve yours.

@A-suozhang Hello,I used the Quantization tool you recommended, I want to store and quantify the sparse matrix that has been pruned for AlexNet, and there is no problem when I run./build.sh.However, when I ran python caffemodel_compress. py, the following error occurred. I tried all kinds of methods but couldn't find the problem

image

Hugo1994 avatar Nov 14 '18 10:11 Hugo1994