caffe icon indicating copy to clipboard operation
caffe copied to clipboard

how to print convolution kernel value??

Open jeehye opened this issue 11 years ago • 5 comments

Hello I want to know exact value of the 5*5 convolution filter matrix. How can I get the value??

jeehye avatar Jan 05 '15 06:01 jeehye

If I undrestand correctly, with the python interface you can use net.params['conv1'] for instance.

yassersouri avatar Jan 05 '15 09:01 yassersouri

I'm not used to python. could you be more specific?? The code which I made does not work... How could I change the code??

#!/usr/bin/env python import numpy as np import pandas as pd import os import argparse import time import caffe net = caffe.Net('/examples/mnist/lenet.prototxt', '/examples/mnist/lenet_iter_5000.caffemodel') print net.params['conv1']

jeehye avatar Jan 05 '15 10:01 jeehye

Take a look at this example: http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/filter_visualization.ipynb

I think you should look at In[5]

yassersouri avatar Jan 05 '15 19:01 yassersouri

hey yasser i have been wanting to do the same thing recently however I am using the ported version of caffe for windows. Do you have any idea how to extract the data and or add kernels to the convolution layer? I am new to python and a beginner with programming in General

Engin007 avatar Jan 06 '15 00:01 Engin007

Please use the mailinglist.

bhack avatar Jan 06 '15 00:01 bhack