We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi all, I'm trying to extract filters and biases by matcaffe. The following is my code:
addpath('/home/jensen810814/code/caffe/matlab/caffe/'); addpath('/home/jensen810814/code/caffe/examples/super_resolution/'); addpath('/home/jensen810814/code/caffe/examples/super_resolution/super_resolution_lmdb_data/'); addpath('/home/jensen810814/code/caffe/examples/super_resolution/Model/'); caffe('init','deploy.prototxt', 'super_resolution_iter_1000.caffemodel','test'); caffe('forward',{}); weights = caffe('get_weights'); save('/home/jensen810814/code/caffe/examples/super_resolution/filter_data.mat','weights');
But it shows an error message :
Error using caffe Invalid input size Error in model (line 9) caffe('forward',{});
I dont know what the error mean and how to solve it. I am a beginner in caffe,..can anyone help me? Please and thanks.
The text was updated successfully, but these errors were encountered:
@jensen810814 You don't need to have "caffe('forward',{});", simply get_weights after you initialize
Sorry, something went wrong.
it works!! Thanks for your answer !! So kind of you.
I'm happy to see an answer from the community, but please ask usage questions on the caffe-users group.
No branches or pull requests
Hi all,
I'm trying to extract filters and biases by matcaffe.
The following is my code:
addpath('/home/jensen810814/code/caffe/matlab/caffe/');
addpath('/home/jensen810814/code/caffe/examples/super_resolution/');
addpath('/home/jensen810814/code/caffe/examples/super_resolution/super_resolution_lmdb_data/');
addpath('/home/jensen810814/code/caffe/examples/super_resolution/Model/');
caffe('init','deploy.prototxt', 'super_resolution_iter_1000.caffemodel','test');
caffe('forward',{});
weights = caffe('get_weights');
save('/home/jensen810814/code/caffe/examples/super_resolution/filter_data.mat','weights');
But it shows an error message :
Error using caffe
Invalid input size
Error in model (line 9)
caffe('forward',{});
I dont know what the error mean and how to solve it.
I am a beginner in caffe,..can anyone help me? Please and thanks.
The text was updated successfully, but these errors were encountered: