Ah right, good catch.
Ive made the change but I’m still not getting this simple cube segmented by the network. Ive let the code run for 800 epochs and outpu.max() produces: tensor(-2.1355, device='cuda:0', grad_fn=<MaxBackward1>).
Therefore thresholding at output > 0 produces another 0 tensor