How to handle labels using fileDatastore in a CNN
18 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Mauricio Piraquive
el 12 de Feb. de 2021
Comentada: Pierre
el 22 de Sept. de 2023
I have a collection of 50x1x12 mat files, that I need to upload into some datastore to subsequently pass into a convolutional neural network, how can I handle the labels of this files?, what datastore should I use?,
I have been trying with file datastore, the filedatastore does not handle the labels in the same way as the imagedatastore does getting them from the folder.
-What datastore can I use
-if I use filedatastore how can I handle the labels after getting them from the foler and in the moment of use net = trainNetwork( ? );
-how the inputlayer should initially set
I really appreacite the help I have been stuck with this for along time.
0 comentarios
Respuesta aceptada
Madhav Thakker
el 14 de Feb. de 2021
Hi Mauricio,
You can use two different datastores for reading the .mat files and labels separately. Then, you can use combine on the datastores and feed to the CNN network.
Refer https://in.mathworks.com/matlabcentral/answers/459161-image-regression-using-mat-files-and-a-datastore#answer_405285 answer for a similar approach.
Hope this helps.
3 comentarios
Saif Aljanahi
el 30 de Abr. de 2021
Dear Mauricio, did you conducts this example and you got results? I really need your help in this matter.
I'm want to label such data from datastore or folder data!.
Thanks.
Pierre
el 22 de Sept. de 2023
Why use 2 different datastores and combine them when you can just 1 with both predictors and response?
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!