Image to number prediction using CNN regression.
Afficher commentaires plus anciens
Hello
I have 564 Nifti images, each being 128*128*16*4, as input training data 'imds'. The outputs are 564 continous variables from 0 to 1, which I set as 'imds.Labels'.
I used imagedatastore to combine 'imds' with 'imds.Labels' and then run the regression CNN. But when I run the training, a error suggested that: "the labels of the imagedatastore must be a categorical vector".
Does anyone know how to fix this problem.
Many thanks
Gabriel
3 commentaires
Divya Gaddipati
le 18 Oct 2020
Could you share the network you are using ?
GABRIELZHU ZHU
le 18 Oct 2020
hawi teshome
le 14 Jan 2022
Hello there, I am facing similar problem. Can you share how you fixed it?
Réponses (1)
yanqi liu
le 17 Jan 2022
yes,sir,may be use
regressionLayer
as the net output,and use 4-D XTrain, 1-D YTrain to train net
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!