Format of segmentation labels?

(Charles Lu) #1

If I have a binary mask of an image, what it the best way to encode this label for a segmentation network like Segnet or U-Net? Should the label be by pixel if there are only two classes?

(Pietro La Torre) #2

I am also interested in your question.
Did you find a way?