フィルターのクリア

Image to number prediction using CNN regression.

3 ビュー (過去 30 日間)
GABRIELZHU ZHU
GABRIELZHU ZHU 2020 年 10 月 5 日
回答済み: yanqi liu 2022 年 1 月 17 日
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 件のコメント
GABRIELZHU ZHU
GABRIELZHU ZHU 2020 年 10 月 18 日
Thank you for your response. Actually, I have figured it out, using imds2array().
hawi teshome
hawi teshome 2022 年 1 月 14 日
Hello there, I am facing similar problem. Can you share how you fixed it?

サインインしてコメントする。

回答 (1 件)

yanqi liu
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

カテゴリ

Help Center および File ExchangeRecognition, Object Detection, and Semantic Segmentation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by