The response size is the size of the target data. I see this error when trying to train a regression network and the network's output size does not match the size of the target data. You will need to add or configure layers such that the images propagated through your network end up with size [1,1,2] - a simple way to do this might be to add a fullyConnectedLayer(2) before the output regressionLayer as this will "flatten" the 256x256x2 images into 1x1x2 via the standard fully connected layer operation (a matrix multiply plus a bias).
Problem while usinge UNET
2 次查看(过去 30 天)
显示 更早的评论
Hello, I am trying to build up an UNET, but it is givinge me this error, i dont know what to change .. pls help me :)
My data is in two folders, but what do they mean with response size ??
0 个评论
回答(1 个)
另请参阅
类别
在 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!