Training network after combining two imds
1 次查看(过去 30 天)
显示 更早的评论
Hi all,
I'm trying to use a combined dataset to train my network
imds and augImds worked great.
Then I
combine(imds, augImds);
The problem raises when I do
net = trainNetwork(combinedImds, layers, options);
The error pops-up:
Error using trainNetwork: Invalid training data. The output size [1 1 1 2] of the last layer does not match the response size [0 0 1 1].
The thing is that the training works when using imds, or augImds as arguments. But not for combineImds.
Does anyone know how to solve it?
By the way, I haven't found any documentation explaining what are the meaning of these elements in output and response size. My classes are 2, so I wonder the last element for output size represents the # classes. But what are the other elements?
Thanks
0 个评论
回答(0 个)
另请参阅
类别
在 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!