so i’m training a 3D Unet where my input size is (1, 1, 64, 64, 64) and my output is (1, 2, 64, 64, 64). How do I get rid of one of the channels for the output so that i can compare the two?
I want my tensor to go from (1, 2, 64, 64, 64) to (1, 1, 64, 64, 64) by removing one of the channels.
I think it is not good idea to just get rid of a channel. If your model generates outputs of size [1, 2, ...] then simply you can change last layer to generate 1 channel outputs. Otherwise, you have to find a function that maps 2 channel to 1 channel, otherwise you might lose a lot of information.
Doing it on UNet model is really easy.