How can i load my own data set of images ?

조회 수: 6 (최근 30일)
Melih Ayhan
Melih Ayhan 2015년 12월 28일
댓글: Sakshi Sharma 2021년 7월 1일
Hello everyone,
I'm working on cnn to apply deep learning algorithms on a dataset of pictures that i've created. But i couldn't load those images on matlab. Furthermore, if there is anyone working on cnn, i need to do object classification among them, does have any idea how to classification, train and test processes please help me. Thanks already.
  댓글 수: 4
Melih Ayhan
Melih Ayhan 2015년 12월 29일
Basically it works on mnist dataset; When im doing below
load mnist_uint8;
But when i'm trying to do this:
load my_dataset;
It says No such file or directory...
my_dataset is a folder and also contains two different folders which has 100 images. I'm trying to appyl cnn on those photos but i cant load the database on workplace. (i'm new on matlab, if this is a silly question, im sorry about it)
Thanks already :)
Sakshi Sharma
Sakshi Sharma 2021년 7월 1일
Hi, I am also doing the same but loading my own dataset of 25 images. Can you please guide me with whole process and code with the same, as I am assuming you had already done with this question solution.
Thanks!

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2015년 12월 28일
  댓글 수: 5
Melih Ayhan
Melih Ayhan 2015년 12월 29일
Thanks for the answer,
folder = 'c:/whatever';
myImages = imageSet(folder);
this one works
But i think i need to convert the whole folder into a *.mat file to apply my cnn. Do you know a way to do that ?
Image Analyst
Image Analyst 2015년 12월 29일
Use code from the FAQ to open a sequence of files: http://matlab.wikia.com/wiki/FAQ#How_can_I_process_a_sequence_of_files.3F
Then, in the middle of the loop, take whatever variables you want to save in .mat files and save them with a call to load().

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by