MatConvNet is a MATLAB toolbox implementing Convolutional Neural Networks (CNNs) for computer vision applications.
Questions tagged [matconvnet]
67 questions
4
votes
7 answers
Matconvnet error cl.exe not found
I have installed MatConvNet from VLFeat and I am trying to compile it. But as I am trying to run vl_compilenn it shows the following error:
vl_compilenn
Warning: CL.EXE not found in PATH. Trying to guess out of mex setup.
> In…

user7029552
- 61
- 1
- 1
- 5
3
votes
1 answer
Can't replicate a matconvnet CNN architecture in Keras
I have the following architecture of a Convolutional Neural Network in matconvnet which I use to train on my own data:
function net = cnn_mnist_init(varargin)
% CNN_MNIST_LENET Initialize a CNN similar for MNIST
opts.batchNormalization = false…

mad
- 2,677
- 8
- 35
- 78
3
votes
1 answer
How to design a CNN (the inputs and outputs of the layers)?
I am a beginner and learning deep learning with baby steps. I have a question about designing the nets. I see in the papers, there are layers with different inputs/outputs and I do not know how to calculate/design before implementation.
For…

S.EB
- 1,966
- 4
- 29
- 54
3
votes
1 answer
Add regression layer to MatConvNet
I have designed a smile detection system. this system is based on deep learning and has been implemented by MatConvnet. The last layer is the output of the system and has 10 output according to the amount of the person's smile. I want to convert…

MHS
- 71
- 4
2
votes
1 answer
Matlab: error using bsxfun Non-singleton dimensions of the two input arrays must match each other
I'm trying to run https://www.vlfeat.org/matconvnet/quick/,
I wrote the following codes (network is Alexnet):
im = imread('/home/levi/Codes/MM_space//n01443537_22563.JPEG');
im_ = single(im);
im_ = imresize(im_,…

Kadaj13
- 1,423
- 3
- 17
- 41
2
votes
1 answer
Initialize TensorFlow CNN model with Numpy weight matrices
I am working on manually converting a pretrained matconvnet model to a tensorflow model. I have pulled the weights/biases from the matconvnet model mat file using scipy.io and obtained numpy matrices for the weights and biases.
Code snippets where…

mdoc-2011
- 2,747
- 4
- 21
- 43
2
votes
1 answer
Import a CNN model from Matlab (Matconvnet) to Python (Keras)
I'm doing a binary classification with CNN using Matconvnet on Matconvnet. And now, I'm trying to realize it through Keras on Python. The network is not complex at all and I achieved 96% accuracy on Matconvnet. However with Keras, even I tried my…

Yujia Deng
- 21
- 4
2
votes
1 answer
Adam optimizer in MatConvNet
I tried implementing Adam instead of default SGD optimizer by changing following code in cnn_train from:
opts.solver = [] ; % Empty array means use the default SGD solver
[opts, varargin] = vl_argparse(opts, varargin) ;
if ~isempty(opts.solver)
…

Nicole
- 31
- 6
2
votes
1 answer
MATLAB No supported compiler or SDK was found in mex_compile Linux
I had to downgrade my GCC to version 4.7 because I had this kind of problem when compiling matConvnet
Warning: You are using gcc version '5.4.0'. The version of gcc is not supported. The version currently supported with MEX is '4.7.x'. For a list of…

mad
- 2,677
- 8
- 35
- 78
2
votes
2 answers
Matlab Convolutional Neural network not learning
I'm running an example that I got from a Webinar.
this is the code:
%% Fine Tuning A Deep Neural Network
clear; clc;close all;
imagenet_cnn = load('imagenet-cnn');
net = imagenet_cnn.convnet;
net.Layers
%% Perform net surgery
layers =…

Nicole Ramírez
- 345
- 3
- 19
2
votes
3 answers
Compiling MatConvNet on Windows
I am trying to compile MatConvNet on Windows 8.1. Since it seems that I need to use the "Makefile" to do that, I downloaded GNUWin Make, which allows to use the make command on Windows. The error I get is the following one:
process_begin:…

Arnaud
- 4,884
- 17
- 54
- 85
1
vote
0 answers
I'm trying to train the code of Target-Aware Deep Tracking in matlab
I'm for now compiling in CPU version.I am working on matlab 2020a.I've tried to remove the vl_nnconv.m from matconvnet but i still get the following error.
Also the matconvnet i'm using is version matconvnet-1.0-beta25 I'm stuck here since 2 days…

Alifa Nasrin
- 11
- 2
1
vote
0 answers
Matconvnet is not compiling with gpu using matlab 2019 b?
I am using MATLAB 2019b, CUDA toolkit 10.1 and visual studio 2017.
I am able to compile the CPU version. but here is the error I get while compiling GPU version.
vl_compilenn('enableGpu', true, ...
'cudaRoot', 'C:\Program Files\NVIDIA GPU Computing…

AYOUB
- 21
- 2
1
vote
0 answers
Use Matconvnet model in Python or Make it Compatible with Python
We are using a pretrained model of imagenet-vgg-m-2048 obtained from the following website:
http://www.vlfeat.org/matconvnet/pretrained/
Is there any way to use this model or convert it to be compatible with any python machine learning…

Rehan
- 454
- 7
- 19
1
vote
1 answer
How to visualize our network in Matconvnet?
Is there any function to visualize the network like this?
I want to visualize both dagnn and simplenn architectures.

Ahmet Gökhan Poyraz
- 170
- 1
- 10