How can I label images for classification based on image name?
4 次查看(过去 30 天)
显示 更早的评论
I want to carry out transfer learning for classification using squeezeNet for a set of images. All the images are stored in one folder and I want to classify each image based on its name (file name). For example, if the image name is '1.jpg' , its label will be '1'. so if I have 500 images in the folder , I want the network to realize that I have 500 classes. I used deep network designer in Matlab and I import data as the folder of images, then I got this training data distribution which means that all the images will be classified as one class called 'high' !!!!!. Does anyone know how to label the images based on image name in the folder? Thanks.
0 个评论
回答(1 个)
Ajith Krishna Kanduri
2020-6-18
编辑:Ajith Krishna Kanduri
2020-6-18
Hi Sandoub,
I have understood you are facing issue in labeling the images. You can refer the following link for more information about loading data in the Deep Network Designer.
You can see in the import data tab there is an option “Select a folder with subfolder of images for each class”. Images in the subfolder are categorized into classes. Since you are using all the images from one folder, they are categorized into one class. If you want to have 500 classes, then you can use 500 subfolders.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!