<< dnn_forward Deep Learning dnn_list >>

IPCV >> Deep Learning > dnn_getparam

dnn_getparam

Get the layer's parameters

Syntax

out = dnn_getparam(net,layer_name,numParam)

Parameters

net :

DNN object loaded in Scilab

layer_name :

Name for layer which output is needed to get

numParam :

index of the layer parameter in the layer

out :

Output matrix of the results depending on the type of DNN loaded.

Description

This function is used to retrieve the layer's parameters (filter coefficients)

Examples

// Initialize
dnn_unloadallmodels
dnn_path = fullfile(getIPCVpath(),'images','dnn');
net = dnn_readmodel(fullfile(dnn_path,'lenet5.pb'),'','tensorflow');

// Read Image
S = imread(fullfile(dnn_path,'3.jpg'));

// Forward Pass
para1 = dnn_getparam(net,"conv2d/Conv2D");
scf();dnn_showparam(para1);

// Clean Up
dnn_unloadallmodels();

See also

Authors


Report an issue
<< dnn_forward Deep Learning dnn_list >>