How to classify digital images that belong to one or more classes using deep learning (convolutional neural networks)? The classes of each image are described in a CSV file.
Show older comments
I have an image dataset.
Each image can belong to one or more classes.
That is, in the same image there are one or more classes.
The dataset has a CSV file with 5 columns, with the first column in the file name of each image and the other 4 columns refer to 4 classes (A, B, C, D).
For example the image 1.jpg may belong to class A (1) and B (1), it does not belong to class C (0) and there is uncertainty whether it belongs to class D (-1).
In other words, 1 = belongs, 0 = does not belong and -1 = uncertain.
I can't divide the dataset by classes (folders for each class), as the images can belong to several classes.
Someone can help me
Answers (1)
o.cefet cefet
on 29 May 2020
0 votes
5 Comments
Image Analyst
on 29 May 2020
Edited: Image Analyst
on 29 May 2020
I don't understand. You say you have the classes stored in a CSV file, so what's the problem? Just read the class out of that CSV file. Why do you even need deep learning for that???
o.cefet cefet
on 29 May 2020
Image Analyst
on 30 May 2020
Right, but why or how do you need to classify them again? They have ALREADY been classified and the class(es) they are believed to belong to were stored in that text file, so simply read the classification from the text file using functions like importdata(), textscan(), dlmread(), readmatrix(), etc.
o.cefet cefet
on 30 May 2020
Tarily
on 21 Jun 2023
Do you have solven the problem? I have the same question now :)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!