Questions tagged [matcaffe]

MatCaffe is a MATLAB interface for the deep-learning framework Caffe.

Caffe is a framework by the Berkeley Vision and Learning Center (BVLC). It is based on and and supports both CPU and GPU processing. Caffe is released under the BSD 2-Clause license.

MatCaffe is a MATLAB interface for the Caffe framework. Use the tag in addition to the tag for problems related to the MATLAB interface.

Useful links:

96 questions
0
votes
1 answer

Unable to install Caffe on windows

I am trying to install Caffe deep learning platform on windows and struggling for many days. Unfortunately, I am still unsuccessful in installing it. I followed the instructions that Neil has mentioned on his blog. During setting Cmake in step 3, I…
S.EB
  • 1,966
  • 4
  • 29
  • 54
0
votes
0 answers

softmaxwithloss outputs me a nan

I am trying to perform classification. I have 9 classes in total. I have 3 potential in my loss function but in training I am taking only one. I have set the weight of two loss function to zero, therefore just taking into account one term in loss…
0
votes
2 answers

Issues regarding classification instead of regression using deep learning

I have a question. I have a network which works fine I want to do the regression. However, when I am trying to use it for classification(after maing supposedly appropriate changes) I am facing some issues. I have 9 classes, but the issue is that the…
0
votes
0 answers

Getting low accuracy while testing MNIST classification using MATCaffe

Problem: I am getting very low (10%) accuracy when testing MNIST classification with MatCaffe. Background I trained the MNIST digits using the lenet_train_test and lenet_solver and observed ~99% test accuracy in caffe basic interface. I saved the…
Hasnat
  • 664
  • 1
  • 7
  • 21
0
votes
2 answers

how to read specific information from a .txt file in MATLAB?

I have a long text file like this: I0927 11:33:18.534551 16932 solver.cpp:244] Train net output #0: loss = 2.61145 (* 1 = 2.61145 loss) I0927 11:33:18.534620 16932 sgd_solver.cpp:106] Iteration 20, lr = 0.001 I0927 11:33:33.221546 16932…
user6726469
  • 231
  • 1
  • 3
  • 14
0
votes
1 answer

Error running a forward pass with matcaffe

I am doing transfer learning with a CNN. I want to train the network with my data but I got this error when doing a forward pass: Error using CHECK (line 4) input data cell length must match input blob number Error in caffe.Net/forward (line 92) …
Alex_AMC
  • 27
  • 1
  • 3
0
votes
1 answer

Fully convolutional net in Caffe

Is it possible for me to directly give an image and its segmentation as the input for training a caffe? Does the original implementation support this? If yes where can I find an appropreate prototxt file?
user570593
  • 3,420
  • 12
  • 56
  • 91
0
votes
0 answers

caffe copy pretrained weights to train a network which supports for larger input

How can I use the pretrained e.g. AlexNet model to train a CNN which supports larger (e.g. 500x500) input image sizes? In other words, how to copy only the convolutional filters to the new network (using Matlab wrapper)?
user570593
  • 3,420
  • 12
  • 56
  • 91
0
votes
0 answers

How to create this CNN architecture in Caffe?

I have two images/patches (the larger one includes the smaller one and some context information around it) of different sizes (I dont wont to create a new image by just concatenating them). I want to create a CNN as shown in the figure. How can I…
user570593
  • 3,420
  • 12
  • 56
  • 91
0
votes
1 answer

how to use matcaffe on windows

I want to use Caffe with Matlab on windows 7. I downloaded Caffe on https://github.com/Microsoft/caffe/tree/master Then I built Caffe with visual studio 2013 (the whole solution'caffe' which includes libcaffe, matcaffe .. ). It built successfully.…
Alex_AMC
  • 27
  • 1
  • 3
0
votes
1 answer

Datatype class: H5T_FLOAT F0413 08:54:40.661201 17769 hdf5_data_layer.cpp:53] Check failed: hdf_blobs_[i] ->shape(0) == num (1 vs. 1024)

My data set is a HDF5 file consists of data with shape [129028,1,12,1024] and label of shape [129028,1,1,1]. But when I run solver.prototxt, I get the error message: I0413 08:54:34.689985 17769 hdf5.cpp:32] Datatype class: H5T_FLOAT F0413…
Zhao Wulanaren
  • 161
  • 1
  • 2
  • 9
0
votes
1 answer

caffe how to set a filter using matlab?

I want to update a convolutional filter using matlab in Caffe. How can I do it? so far my code is: caffe.reset_all(); % reset caffe caffe.set_mode_gpu(); gpu_id = 0; % we will use the first gpu in this demo caffe.set_device(gpu_id); net_model =…
user570593
  • 3,420
  • 12
  • 56
  • 91
0
votes
0 answers

Caffe matlab wrapper random outputs

I trained a CNN. I used matcaffe to test it. My code is data = ones(net.blobs('data').shape); size(data) net.blobs('data').set_data(data); net.forward_prefilled(); prob = net.blobs('prob').get_data() the results I am getting is (2 class…
user570593
  • 3,420
  • 12
  • 56
  • 91
0
votes
2 answers

Caffe matlab examples for training and testing CNN

How can I train and test a CNN using Matlab? Can anybody give me an example code?
user570593
  • 3,420
  • 12
  • 56
  • 91
0
votes
1 answer

Extract Caffe features with variable batch size in Matlab

I know how to extract Caffe feats / scores using the matcaffe_demo.m that is provided along with Caffe. However when using this file one has to provide a prototxt file that determines not only the network architecture but also the input dimensions…
mcExchange
  • 6,154
  • 12
  • 57
  • 103