So if I am understanding this correctly, the target or masks need to be in a matrix type format. Like lets say I have an image that’s 7 by 5 pixels, with two classes. Class 0, corresponds to background and the color black in the mask, and class 1 corresponds to car and the color blue in the mask, then a mask for a 7 by 5 image would be like this?
0000000
0011100
0011100
0011100
0000000
I know the above doesn’t look anything like a car…more like a square with a border, but I didn’t want to create a huge matrix.