Problem while usinge UNET

3 views (last 30 days)
Oskar
Oskar on 28 Nov 2022
Answered: Ben on 29 Nov 2022
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 ??

Answers (1)

Ben
Ben on 29 Nov 2022
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).

Categories

Find more on Image Data Workflows in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!