I am working on the segmentation task with 2 classes :vessel and background.
It seems to have two options.
1 .output is 1 channel mask,grayscale image,using binary cross entropy as loss function.I am confused with how the metric like FP TP caculated,should I set the threshold to turn the grayscale picture to black and white picture then caculate the metric?
2 .output is 2 channel mask,using cross entropy, get the mask by output.argmax(dim=1),and it looks like easier to caculate the FP and TP
Is there a best option between them?