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
2
votes
1 answer

Tackling imbalanced class members in Caffe: weight contribution of each instance to loss value

I have a highly imbalanced data, I know that some users suggesting using InfoGainLoss loss function, however, I am facing few errors when I tried to add this function to Caffe layers. I have the following questions, I really appreciate if someone…
S.EB
  • 1,966
  • 4
  • 29
  • 54
2
votes
1 answer

I am getting Incorrect data field size error while generating the mean image of training data, even after generating by using create_imagenet.sh,why?

I am trying to generate the mean image from training data in caffe. My data is 256x256 grayscale images. I created lmdb by using create_imagenet.sh by replecing --shuffle with --gray. I edited create_imagenet.sh as follows: GLOG_logtostderr=1…
S.EB
  • 1,966
  • 4
  • 29
  • 54
2
votes
1 answer

How did you run FCN code semantic segmentation?

I wanted to run the [FCN code][1] for semantic segmentation. However, I am beginner in Caffe and I did not know from which point should I start running the code. Is there any step by step guidance for running?
S.EB
  • 1,966
  • 4
  • 29
  • 54
2
votes
0 answers

Compile Matcaffe error: undefined reference to boost::thread::join()

I am new here and this is my very first question. I started working on deep learning recently and decided to use caffe. I went through the steps as explained in the caffe tutorial installation: installed CUDA, cuDNN, installed OpenBLAS, the other…
2
votes
1 answer

How to convert hdf5 format to caffemodel format in caffe?

Basically I am using using caffe for deep learning. Now I finetuned a network for my own dataset and saved my model in hdf5 format which is .h5 extension. Now I want to classify images using matcaffe. matcaffe understands only .caffemodel format…
2
votes
1 answer

How can I convert data which form is matlab file to LMDB as my caffe input?

I have a data set which form is matlab file. The data set contains 600,000 samples and every sample is a matrix of 7-by-256. My data is not image but signal. I want to use CNN of caffe to train the data. So how can I convert it to LMDB as my input…
2
votes
1 answer

Custom Loss Function Caffe (Spearman Coefficient) while FInetuning (Regression)

I am finetuning imagenet for a regression problem in caffe. At present I am using Eucliden Loss, but I don't think it is any good in my case. I want the loss values to be the spearman coefficient between predicted labels and actual labels. How can I…
Deven
  • 617
  • 2
  • 6
  • 20
2
votes
0 answers

Write caffe architecture in matlab

Has anyone an idea how one could write caffe architectures using matlab? In python there are caffe mods (eg ApolloCaffe) where you can get the corresponding prototxt string by typing for example: datalayer = HDF5Data('myDataLayer',…
mcExchange
  • 6,154
  • 12
  • 57
  • 103
2
votes
2 answers

How to adapt Caffe Matlab wrapper for a network trained on Mnist?

I successfully trained my Caffe net on the mnist database following http://caffe.berkeleyvision.org/gathered/examples/mnist.html Now I want to test the network with my own images using the Matlab wrapper. Therefore in "matcaffe.m" im loading the…
mcExchange
  • 6,154
  • 12
  • 57
  • 103
1
vote
1 answer

Interpret Caffe FCN output classes

I have set up Caffe and using FCN-8s model with little change with output classes: layer { name: "score_5classes" type: "Convolution" bottom: "score" top: "score_5classes" convolution_param { num_output: 2 pad: 0 kernel_size: 1 …
1
vote
2 answers

Python3 ImportError: No module named 'google.protobuf

I have compiled protobuf 2.6.0 source code in my ubuntu system, once I wanna import caffe, it is showing the following error: /usr/local/lib/python3.5/dist-packages/caffe/__init__.py:30: UserWarning: Caffe datatype DOUBLE not available. …
sc241
  • 189
  • 17
1
vote
1 answer

How to create HDF5 database of 3D data for pycaffe?

My question may sound easy, however, I have difficulty in creating an Hdf5 dataset from my 3d medical images that have been saved in nii format for both images and manual segmentation (label files). My questions are: The blob shape in pycaffe is…
user630317
  • 31
  • 8
1
vote
1 answer

make all error while installing caffe with matlab

I am trying to install caffe with cpu support and matcaffe wrapper. My system config: Ubuntu -16.04, opencv 2.4.9, gcc-4.9, g++-4.9, Matlab2017b I am unable to figure out the error I have seen many possible options available and patched the…
talos1904
  • 952
  • 3
  • 9
  • 24
1
vote
0 answers

How to load a multi-channel (5 channel) into FCN which has been already trained on RGB images?

I am using FCN8s and its pre-trained model for semantic segmentation on my data. Since vanilla-fcn models accept three channels images (RGB), I do not know how can I give 5 channel images to the model. Could someone please explain how can I give an…
S.EB
  • 1,966
  • 4
  • 29
  • 54
1
vote
0 answers

Why caffe raises this error? ImportError: cannot import name _remove_dead_weakref

I have written a Python layer that puts bottom into an array (im), squeezes the dimension and prints the shape of array (im_shape). caffe is raising the following error, even after recompiling it again, I am getting this error. Could someone please…
S.EB
  • 1,966
  • 4
  • 29
  • 54