vlfeat / matconvnet

MatConvNet: CNNs for MATLAB
Other
1.4k stars 753 forks source link

how to get the imdb.mat file using my own labeled images? #383

Closed ghost closed 8 years ago

ghost commented 8 years ago

I have hundreds of images in several categories with labeled. my question is how to get the imdb.mat file using the original labeled images because i want to train my own model.

iiwindii commented 8 years ago

this is very simple, just see the examples provided in matconvnet

tinalegre commented 8 years ago

@ShuenLyu have a look at the cnn_imagenet_setup_data.m example. Basically, the function will return a structure named imdb with two main fields: imdb.images & imdb.classes. The IDs, names, training set labels, and class labels of your database images are set in the following fields respectively: imdb.images.id, imdb.images.name, imdb.images.set, imdb.images.label. The training set labels have 3 different values: {1,2,3}. The value 1 is associated with the training images, value 2 with validation images, and value 3 with testing Images. A description and name of the class labels in your dataset are set up in: imdb.classes.name and imdb.classes.description accordingly. You'll also need to specify your image directory: imdb.imageDir

ghost commented 8 years ago

thanks very much.

lenck commented 8 years ago

@tinalegre Thanks for the perfect response! :)

ghost commented 8 years ago

@tinalegre Hi,i think this cnn_imagenet_setup_data.m example cannot solve my problem because the label information is in an excel file not like the that of the example. here is my problem that i have several hundreds original images in several catogries with labeled information in an excel file, I dont know how to use it and how to convert it to mat file. could you give me some advise.thanks very much.

prashant905 commented 8 years ago

@ShuenLyu Did you sort out this issue. i am having the same problem and wondering can i create my own imdb dataset with my set of images.?Can you please guide through the solution?

JavierCoronel commented 8 years ago

Hi, is there a way to include the images in the .mat file? my database are image patches and not jpeg files in a folder If someone could help me would be great

Karakule commented 7 years ago

Is there any one who can make a tutorial for making imdb.mat file with using his/her own labeled images? It is very imporant for me.

JavierCoronel commented 7 years ago

@Karakule I could help you if you give me more information about your data.

Karakule commented 7 years ago

Thank you very much @JavierCoronel. I have 7 type of classes . In each class I have 144 images(jpg format). Now I want to make imdb file then classify with some network. Actually I dont know how creating new netwolrk also.

JavierCoronel commented 7 years ago

@Karakule You have to do various task with your data before trying the network. You can write to me at jd.coronel30@uniandes.edu.co to give you specific information and solve your answers

arash111 commented 7 years ago

Hi, can any body help me please, I have my own data (10 classes, and each contain around 300 jpg images), as I'm trying the method described above see the error: Error using cnn_imagenet_setup_data (line 51) Make sure that ILSVRC data is correctly installed in data\imagenet12!! no idea please?

hdm29 commented 6 years ago

hey friends, i'm new to this topic. can anyone help me in creating imdb of my own dataset please? @lenck , i think you can provide some basic tutorial on this issue. i tried to find but couldn't.