Image to number prediction using CNN regression.
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
yanqi liu
2022-1-17
yes,sir,may be use
regressionLayer
as the net output,and use 4-D XTrain, 1-D YTrain to train net
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deep Learning Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!