<< dnn_list Deep Learning dnn_showfeature >>

IPCV >> Deep Learning > dnn_readmodel

dnn_readmodel

Read/Import DNN model from disk

Syntax

net = dnn_readmodel(model,modelinfo,modeltype);

Parameters

model :

Model binary (Caffe -> .caffemodel file, TF -> .pb file).

modelinfo :

MOdel info (Caffe - > .prototxt file. TF -> .pbtxt file).

modeltype :

Model type, currently support Caffe and Tensorflow model.

net :

Loaded net with its' pointer and informations.

Description

This function is used for loading DNN model and used in Scilab for inference system.

Examples

dnn_path = fullpath(getIPCVpath() + '/images/dnn/');
net = dnn_readmodel(dnn_path + 'lenet5.pb','','tensorflow');
S = imread(dnn_path + '3.jpg');
imshow(S);
out = dnn_forward(net,~S,[28,28]);
[maxV,maxI]=max(out);
xnumb(10,10,maxI-1);
e = gce();
e.font_size = 10;
e.font_color = 5;

See also

Authors


Report an issue
<< dnn_list Deep Learning dnn_showfeature >>